Answer the question
In order to leave comments, you need to log in
How to programmatically find out the DNS records of a domain?
It is necessary to programmatically find out all DNS records of a domain in C#.
The method using nslookup is not suitable, you need it inside the application via sockets or in some other way.
Answer the question
In order to leave comments, you need to log in
If you want to get the zone of a domain that is not on the local (with filesystem access) server and therefore you don't have access to the zone's record file, then if AXFR is disabled (which is the normal state), the answer is no way.
The only chance is if the domain is signed by DNSSEC and uses NSEC, then you can get the full set through the dns walk procedure. With NSEC3, this can also be done, but it is much more expensive in all respects.
See https://kostikov.co/post/vnedrenie-dnssec-dlya-vas...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question