After an application calls getaddrinfo with AF_UNSPEC on hints, if you call getaddrinfo again with AF_INET/AF_INET6, the function doesn't use the DNS cache and sends a DNS query to the wire. DnsQuery with option DNS_QUERY_NO_WIRE_QUERY may fail with DNS_ERROR_RECORD_DOES_NOT_EXIST even after an application calls getaddrinfo.
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.