LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-08-2004, 10:32 PM   #1
LQ Newbie
Registered: Feb 2004
Posts: 3

Rep: Reputation: 0
/etc/hosts, /etc/resolve.conf and /etc/host.conf config probs

Some strange things are happening in my set up. When I do an nslookup, dig or host command it doesn't look in my local /etc/hosts file. It seems to bi-pass my configuration and attempts finding it through my DNS server. Just to let you know how things are looking in my system:

<domain info up here>
nameserver myDNSserver

order hosts,bind

contains the correct IP that I'm attempting to nslookup.

Also my /etc/nsswitch.conf file has something like:
hosts: file dns

Old 12-08-2004, 11:07 PM   #2
Registered: Nov 2004
Location: Brisbane, Australia
Distribution: Fedora Core 5
Posts: 89

Rep: Reputation: 15
That's because "nslookup, dig or host" are all DNS query tools, if you do a simple ping "hostname" it should work fine.


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
hotplug, resolve.conf and route Mrcdm Linux - Networking 0 01-22-2005 08:38 AM
nsswitch.conf and host.conf differences peter72 Linux - Networking 4 10-23-2004 02:02 AM
resolve.conf Tigger Linux - Newbie 3 06-04-2003 10:10 AM
if no DNS in /etc/resolve.conf then??? farhan Linux - General 4 03-14-2003 07:45 PM
tirpwire says /etc/resolve.conf was modified (why?) saavik Linux - Security 3 06-10-2002 11:59 PM

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

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