A quick list of dns command under UNIX and Linux
Get domain/host IP address
Code:
nslookup yahoo.com
host -t A yahoo.com
Find IP mapping
Code:
host 66.94.234.13
nslookup 66.94.234.13
You can also use dig
Code:
dig yahoo.com
dig 66.94.234.13
Your name server listed in
/etc/resolv.conf file
Code:
more /etc/resolv.conf
cat /etc/resolv.conf
vi /etc/resolv.conf