Protecting against advanced threats requires an IT dream team – a well-oiled machine of people and solutions working together to defend your organization. Download our resource kit today to learn more about the tools you need to build you IT Dream Team!



and also takes into account a /etc/hosts file or even different sources (ldap, nis, yp etc.).
nslookup uses dns first.
You get the perl script to use the nslookup itself and cature the output and parse that....
or use the 'host' command if available (part of the bind tools)
output should be something along:
host xyz
xyz.my.domain has address 192.168.x.y
host 192.168.x.y
y.x.168.192.in-addr.arpa domain name pointer xyz.my.domain.
In perl you can this data by:
$var = `host xyz`;
and equivalent funtions.