While performing a pentest the information gathering phase is the most important, it’s the key of a successful test.
The DNS is very great source of informations, whith some simple queries you will be able to grab usefull datas about the domain you are targeting.
host command is a very powerful DNS lookup utility which is present in all Linux distribution.
For the examples, I will use a domain which allows that kind of query at this moment.
host is normally used to convert names to IP addresses and vice versa:
If the domain doesn’t exist, you will meet that message:
Host pmolkijn.de not found: 3(NXDOMAIN)
If the ip doesn’t point anywhere, you will get this message:
Host 184.108.40.206 not found: 3(NXDOMAIN)