msDNS
dns  

所属分类:网络编程
开发工具:WINDOWS
文件大小:7KB
下载次数:123
上传日期:2004-12-18 16:49:43
上 传 者llemmx
说明:  微软的DNS源码实例
(Microsoft's source code examples DNS)

文件列表:
DNS (0, 2004-12-03)
DNS\DNSQuery (0, 2004-12-03)
DNS\DNSQuery\DNSQuery.Cpp (5602, 2003-02-26)
DNS\DNSQuery\Makefile (618, 2003-02-26)
DNS\Makefile (1263, 2003-02-26)
DNS\ModifyRecords (0, 2004-12-03)
DNS\ModifyRecords\Makefile (633, 2003-02-26)
DNS\ModifyRecords\ModifyRecords.cpp (7089, 2003-02-26)

======== SUMMARY: ======== The Dnsquery sample demonstrates the use of DnsQuery() function to send queries to a DNS server to resolve the host name to an IP address and vice versa. ============ DESCRIPTION: ============ This sample sends a query to a DNS server to query host (A) record or PTR record set. 1.To resolve a host name to an Ip address run the program as follows: >Dnsquery -n host1 -t A -s 1.1.1.1( optional) 2.To resolve an IP address for example 1.2.3.4 to a name run the program as follows: >Dnsquery -n 4.3.2.1.in-addr.arpa -t PTR -s 1.1.1.1(optional) ==================== SUPPORTED PLATFORMS: ==================== Windows 2000 ========= Building: ========= To build, type "nmake" at the command line. When using the sample code in a project, be sure to link with the DNSAPI.LIB and the WS2_32.LIB libraries. ===== FILES ===== The directory contains the following files: File Description README.TXT This file MAKEFILE Project make file dnsquery.cpp DnsQuery() main program

近期下载者

相关文件


收藏者