LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-14-2005, 10:08 AM   #1
kamransoomro84
Member
 
Registered: Feb 2004
Location: Pakistan
Distribution: OpenSUSE 10.2
Posts: 241

Rep: Reputation: 30
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?
 
Old 11-14-2005, 10:09 AM   #2
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
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?
 
Old 11-16-2005, 09:19 AM   #3
kamransoomro84
Member
 
Registered: Feb 2004
Location: Pakistan
Distribution: OpenSUSE 10.2
Posts: 241

Original Poster
Rep: Reputation: 30
I tried that. It says **server can't find name: NXDOMAIN.
 
Old 11-21-2005, 03:50 PM   #4
ahedler
Member
 
Registered: Oct 2005
Location: A safe distance from Detroit
Distribution: SuSE 10.0, Knoppix
Posts: 99

Rep: Reputation: 17
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
 
Old 11-21-2005, 10:52 PM   #5
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring DNS and DHCP plehman Linux - Networking 3 03-24-2005 05:21 PM
configuring dns abhis_mail2002 Fedora 0 01-12-2005 05:41 AM
Configuring DNS on SuSE nkitilizer Linux - Distributions 0 07-22-2003 09:20 AM
Please help me configuring DNS!!! dibakar Linux - Networking 12 04-14-2003 12:27 PM
DHCP and DNS and configuring both... wlewis Linux - Networking 2 07-20-2002 02:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration