DNS 조회

QDnsLookup 를 사용하여 호스트 이름을 조회하는 방법을 보여줍니다.

이 예제에서는 QDnsLookup 를 사용하여 호스트 이름을 조회하고 결과를 명령줄에 출력하는 방법을 보여줍니다. 또한 QCommandLineParser 를 사용하여 명령줄 인수를 구문 분석하는 방법도 설명합니다.

조회를 수행하려면 호스트 이름과 유형을 지정한 다음, Q Dns Lookup 조회 슬롯을 호출하십시오.

예제 프로젝트 @ code.qt.io

© 2026 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.