If you can ping with only the ip address but not with a domain name like yahoo.com, then your nameservers are not setup properly

i will show you how to fix this:


edit the file /etc/resolv.conf. if you are the command line type: vi /etc/resolv.php or if you are a beginner like me, type: nano /etc/resolv.conf
this will open the resolv.conf file and enter your dns server from your ISP:

search yourdomain.com


  • search domain.com: The search list is normally determined from the local domain name; by default, it contains only the local domain name. So when you type nslookup www, it will be matched to www.yourdomain.com
  • nameserver Name-server-IP-address: Point out to your your own nameserver or to ISP’s name server. Up to 3 name servers may be listed.



If you have window, I will be using windows XP, ( also works for windows 2000 )

Find out DNS server IP under Windows XP/NT
Click on Start button > Run > and Type command cmd > Press enter key
At DOS prompt type the command:

C:\>ipconfig /all

It will display DNS server IP address, and other information related to Windows networking:
  • You can Click on Start button > Settings > Network connections
  • Double click on Local Area Connection
  • Click on Properties button
  • Select Internet Protocol (TCP/IP)
  • Click on Properties button and Look for Preferred DNS Server: