LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-08-2004, 09:32 PM   #1
below_average
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:

/etc/resolve.conf
<domain info up here>
nameserver 127.0.0.1
nameserver myDNSserver

/etc/host.conf
order hosts,bind

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

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

Anyone?
 
Old 12-08-2004, 10:07 PM   #2
Butt-Ugly
Member
 
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.
 
  


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


All times are GMT -5. The time now is 07:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration