Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Log the DNS server used for hostname resolution #1600
It would be nice if in any of the log files (normal, xml or greppable) the DNS server used for the resolution is being logged. I am aware that per default nmap uses the DNS specified in /etc/resolv.conf however, in some engagement the tester may forget to take a note of the content of this file and therefore may need it at a later stage and being able to fetch from nmap log files would be super cool!
This is a neat idea. Nmap currently only manages DNS servers used for reverse-DNS, so that's what we'd have to focus on. Forward lookups (e.g. resolving
Since Nmap distributes its requests across the available DNS servers, would it be sufficient to have one output line listing the configured servers at the beginning, or would you need to know exactly which server provided the reverse name for each target in particular?