View Single Post

  #1 (permalink)  
Old 04-27-2007, 05:36 PM
chiku chiku is offline
Member
User
 
Join Date: Feb 2005
Posts: 66
Rep Power: 0
chiku
Default UNIX and Linux command for DNS

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
__________________
There's no place like 127.0.0.1

Last edited by chiku; 04-27-2007 at 05:43 PM.. Reason: more commands
Reply With Quote