#include <windows.h>
#include <stdio.h>
#include <winerror.h>
#include <windns.h>
#include <assert.h>
Go to the source code of this file.
◆ main()
Definition at line 7 of file dnsquery.c.
7 {
10
13 AddrResponse = QueryReply;
14 while( AddrResponse ) {
16 Addr =
ntohl( AddrResponse->Data.A.IpAddress );
17 printf(
"www.reactos.com == %d.%d.%d.%d\n",
18 (int)(Addr >> 24) & 0xff,
19 (int)(Addr >> 16) & 0xff,
20 (int)(Addr >> 8) & 0xff,
21 (int)Addr & 0xff );
22 }
23 AddrResponse = AddrResponse->pNext;
24 }
26
27 return 0;
28}
VOID WINAPI DnsRecordListFree(PDNS_RECORD list, DNS_FREE_TYPE type)
#define DNS_QUERY_STANDARD