DNS-Abfrage

Zeigt, wie man einen Hostnamen mit QDnsLookup nachschlägt.

In diesem Beispiel wird anhand von QDnsLookup gezeigt, wie man einen Hostnamen nachschlägt und die Ergebnisse in der Befehlszeile ausgibt. Außerdem wird gezeigt, wie man QCommandLineParser zum Parsen von Kommandozeilenargumenten verwenden kann.

Um einen Lookup durchzuführen, geben Sie einen Hostnamen und einen Typ an und rufen dann den Lookup-Slot Q Dns Lookup auf.

Beispielprojekt @ code.qt.io

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.