J
James Brunner
Hi,
Hope someone can help.
I am running a DNS_TYPE_A query for a domain name against the all the
root-servers with the DNS_QUERY_NO_RECURSION option (and the
DNS_QUERY_RETURN_MESSAGE etc..) and expected to get back a packet with
the "authoratative" and "additional" fields populated - I used
SnifferPro and the raw DNS packet does come back to the PC with all
the expected structure - so at least my request goes out and comes
back correctly....
However, the DNS_QUERY() call returns with a 9002 error
(DNS_ERROR_RCODE_SERVER_FAILURE) and the DNS_RECORD structure remains
empty.
If I allow the call to return the raw data (use the *pReserved
variable) the DNS header structure (DNS_HEADER in windns.h) is offset
from the *pReserved pointer by 104 bytes.
Is there an easier way to get this data out of the call?
Thanks in advance.
JB.
Hope someone can help.
I am running a DNS_TYPE_A query for a domain name against the all the
root-servers with the DNS_QUERY_NO_RECURSION option (and the
DNS_QUERY_RETURN_MESSAGE etc..) and expected to get back a packet with
the "authoratative" and "additional" fields populated - I used
SnifferPro and the raw DNS packet does come back to the PC with all
the expected structure - so at least my request goes out and comes
back correctly....
However, the DNS_QUERY() call returns with a 9002 error
(DNS_ERROR_RCODE_SERVER_FAILURE) and the DNS_RECORD structure remains
empty.
If I allow the call to return the raw data (use the *pReserved
variable) the DNS header structure (DNS_HEADER in windns.h) is offset
from the *pReserved pointer by 104 bytes.
Is there an easier way to get this data out of the call?
Thanks in advance.
JB.