LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-22-2004, 02:37 PM   #1
dav7500
Member
 
Registered: Feb 2004
Posts: 45

Rep: Reputation: 15
DNS not working?


I'm running RH 9 at work and it seems my DNS entry is not working. I'm pointing to my corporate internal DNS server but it's still not resolving any internal device names. The same DNS server works properly for 1000+ other PCs so I know it's not a DNS server issue.

I checked following file contents, which seem correct:

resolv.conf
nameserver 10.200.10.200

host.conf
order hosts,bind


I can ping the DNS server by IP and all other devices by IP as well. If I enter some device name & IPs into the hosts file, only then can I ping them by name.

I have a feeling this problem is also screwing up my ability to map from Linux to Windows shares as that is also not working but worked for me before.

Any help is appreciated!!

 
Old 03-22-2004, 06:31 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"I'm pointing to my corporate internal DNS server but it's still not resolving any internal device names."

I think that you have to point at your DNS twice, once by letter name and once by number name. Try something like this:
resolv.conf
search corp.dns.net
nameserver 10.200.10.200

or perhaps:
resolv.conf
domain corp.dns.net
nameserver 10.200.10.200

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 03-22-2004 at 08:03 PM.
 
Old 03-22-2004, 07:58 PM   #3
sonajiso
Member
 
Registered: Oct 2003
Posts: 34

Rep: Reputation: 15
I am just guessing here, but have you tired running dhclient __interface__ or dhcpcd __interface__, where __interface__ is the valid network interface that you are trying to connect through? It worked for me.
 
Old 03-23-2004, 12:32 AM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
If it is a Windows network, are you sure that internal hostnames are being resolved via DNS, and not WINS?
 
Old 03-23-2004, 12:54 AM   #5
jojuof
LQ Newbie
 
Registered: Mar 2004
Posts: 2

Rep: Reputation: 0
hi,

here are some debug steps:

just type command

bash# dig.

It will give screen full of output. check the server ip. should be of form

;; SERVER: 10.200.10.200#53(10.200.10.200).

If its showing currect DNS ip address then type

bash# dig linuxquestions.org

this should show ipaddress of linuxquestions.org site.
 
Old 03-23-2004, 10:32 AM   #6
dav7500
Member
 
Registered: Feb 2004
Posts: 45

Original Poster
Rep: Reputation: 15
Thanks for all the feedback, folks! Here's the results of testing.

jojuof,
The dig cmds you suggested worked, as you stated but still no internal resolution is working.

MS3FGX,
We are all DNS. We've retired WINS years ago.

sonajiso,
I ran /sbin/dhclient eth0 as root but that changed me from a static IP to DHCP assigned IP address, which I don't want (sorry , I didn't mention that previously). Regardless, that change didn't resolve the DNS problem.

---------------------------------------------------------------------------------------------------

While trying all of the above, I just found the problem but not sure how to fix it yet. From my Win PC, I see that i have a "primary dns suffix" of "us.myco" and a "connection-specific dns suffix" of "ny.us.myco" so when i try to ping from windows pc's to server1, it appends the us.nyco to the end and successfully resolves.

Now, from Linux, when I try to ping server1 along, it fails. If I ping server1.us.myco, it works. Some servers only work when I ping them via server2.ny.us.myco maybe because they're in a different site.

In either case, where/how can I enter the 2 suffix commands I listed above that are in my Win box into Linux? That should resolve my resolution problems!!
 
Old 03-23-2004, 12:13 PM   #7
plythgam
Member
 
Registered: Mar 2003
Location: Greenville, NC
Distribution: Fedora core 4
Posts: 31

Rep: Reputation: 15
in your resolv.conf file

search us.myco ny.us.myco
nameserver 10.200.10.200

This will search in order first us.myco then ny.us.myco.
 
Old 03-23-2004, 12:35 PM   #8
dav7500
Member
 
Registered: Feb 2004
Posts: 45

Original Poster
Rep: Reputation: 15
Thanks; that did it!!

I was entering them through the Network Config --> DNS Search Path but they weren't all working there. I must've been seperating them with the wrong character (using comma instead of space).
 
Old 03-24-2004, 03:09 PM   #9
dav7500
Member
 
Registered: Feb 2004
Posts: 45

Original Poster
Rep: Reputation: 15
FYI, making this change broke my ability to reach websites (either through the browser or dig cmd). I had to reverse the order to resolve this problem. See my new resolv.conf contents below:

nameserver 10.200.10.200
search us.myco ny.us.myco
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS not working jonlake Linux - Networking 9 07-08-2005 01:40 AM
dns not working! jimthing2001 Linux - Networking 19 05-28-2004 01:16 AM
DNS Stopped Working` Seventh Linux - Networking 4 01-12-2004 09:49 AM
DNS not working on LAN. richcoosa19 Linux - Networking 3 09-11-2003 04:26 PM
DNS not working! eXor Linux - Networking 3 10-13-2002 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:43 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