Click here to Skip to main content
15,891,633 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
Friends,

I am creating a sample that Queries data from DNS protocol to fetch "AAAA, MX, CNAME" record types.

I have couple of Questions:

1. Using Wireshark software I looked at the data packet querying "AAA,MX,CNAME" types returns only "Authoritative nameservers"; no answer dose it mean it has no records??

2. I am not sure how to parse these "AAA,MX,CNAME" records to C#.

Any answers or like???

Thanks
Joe
Posted
Updated 8-Nov-11 6:05am
v2
Comments
sjelen 8-Nov-11 11:28am    
1. yes
2. take a look at this article:
http://www.codeproject.com/KB/IP/DNS_NET_Resolver.aspx
Joe Rozario 9-Nov-11 5:01am    
Hi friend

Thanks for your answer and link, it works fine,
i need little more information

1. Using the solution in the article , I am able to get all records of a domain (but not able to get the sub records) any help?
For example if i have domain like "google.com" it lists all the record types for google.com, this is ok , but i need to get a records like "mail.google.com" also

Thanks
Joe
sjelen 9-Nov-11 7:51am    
What you are trying is something like 'zone transfer' - it is used to transfer all records between master and slave name servers in a domain.
In theory, this can be done by querying for "ANY" or "ALL" on the authoritative NS.
However for security reasons this type of transfer is usually restricted only between trusted IPs or networks, so you will not get all records.
In another words - it is only possible with name servers that allow zone transfer.
Joe Rozario 9-Nov-11 9:38am    
Thanks again ,

yes i was doing zone transfer, now i found the answer,

if we search Query using "QType.AXFR" we get all the records

Note: The DNS server should allow our host to fetch recoreds.

Thanks
Joe Rozario 15-Nov-11 1:07am    
Hi Friend,

i need to do "Incremental Zone transfer", when i Query "IXFR = 251, // incremental transfer [RFC1995]" what type of values will i get? and what the configuration i need to set in DNS?

can you please give me an idea??or link?

Thanks
Joe

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900