DNS 조회

QDnsLookup 을 사용하여 호스트 이름을 조회하는 방법을 설명합니다.

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

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

예제 프로젝트 @ 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.