LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-04-2009, 03:53 PM   #1
priceda332
LQ Newbie
 
Registered: May 2009
Posts: 2

Rep: Reputation: 0
Name resolution with no nameserver indicated


I have a RHEL cluster -- and no /etc/resolv.conf file and only an /etc/hosts file for name resolution. The /etc/nsswitch.conf file has the hosts line --> hosts files dns. This seems to be as expected -- however, on 'nslookup', I can try to resolve a hostname that is defined in my hosts file yet I get ";; connection timed out; no servers could be reached".
There should not be an attempt to query a nameserver as one is not defined -- I have checked the IPTABLES and they are off on one server and on on a few others -- yet the result is consistently the same.
I am able to successfully ping/telnet/SSH from all the nodes defined in the /etc/hosts file -- it is just that the 'nslookup' command fails.
Any ideas?

Thanks!

Dan
 
Old 05-04-2009, 04:20 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ,

That will be because it's explicitly programmed to query DNS
servers over a network interface. Same for the program host.

"Name resolution" via "gethostbyname" or "gethostbyaddr" will
work quite happily with what's defined in nsswitch.conf; nslookup
and host won't.


Cheers,
Tink
 
Old 05-05-2009, 09:09 AM   #3
priceda332
LQ Newbie
 
Registered: May 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Tinkster,

Thanks very much for the tip -- looks like a little 'gotcha' from RHEL got me.

Tip o'my hat to ya,

Dan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
removal of caching nameserver does not stop domain resolution jhwilliams Linux - Software 1 08-10-2007 10:16 PM
nameserver linux_2007_ Linux - Networking 4 03-18-2007 11:56 PM
which is my nameserver. bruse Linux - Networking 3 07-16-2005 02:45 AM
nameserver question r.stiltskin Linux - Networking 4 08-11-2004 04:46 AM
NameServer Probs .... Ma2LeY Linux - Networking 2 01-28-2004 04:48 AM


All times are GMT -5. The time now is 12:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration