LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Configuring DNS (https://www.linuxquestions.org/questions/linux-general-1/configuring-dns-383036/)

kamransoomro84 11-14-2005 10:08 AM

Configuring DNS
 
I have put the address of my network's DNS in /etc/resolv.conf. However, I still can't use computer names when pinging them. Can anybody tell me what the problem is?

fouldsy 11-14-2005 10:09 AM

If you type "nslookup name", where 'name' is a computername on your network, what does it return? It should display the DNS servers it's querying along with any errors associated with. Are they correct?

kamransoomro84 11-16-2005 09:19 AM

I tried that. It says **server can't find name: NXDOMAIN.

ahedler 11-21-2005 03:50 PM

Is your DNS on the same subnet as the box you are looking from?

If so, do you have the right netmask?

If not, is there a route that points to the DNS?

Can you ping the DNS from this box?

Is your box using a fixed address or DHCP? If it's DHCP, is the DHCP server set up to give the DNS info properly?

If you can answer these questions, you should be most of the way there.

-Alan

twantrd 11-21-2005 10:52 PM

Can you paste your '/etc/resolv.conf' file for us to see? Your problem is probably because you didn't put 'search <your domain>' in the resolv.conf file.

If you just have something like 'nameserver 192.168.1.5', it's not going to resolve hostnames but it will resolve the FQDN 'homer.woohoo.com'. Now if you put something like:

**/etc/resolv.conf**
search woohoo.com
nameserver 192.168.1.5

This will allow you to ping/resolve hostnames.

-twantrd


All times are GMT -5. The time now is 09:04 PM.