DNS协议 DNS协议参考RFC 1035。 使用方法 编译: g++ basic_dns_sender.cpp -o mydns 运行: ./mydns 8.8.8.8 www.baidu.com 运行环境 CentOS Linux release 7.8.2003 g++ (GCC) 4.8.5 运行测试