Fedora Linux Support Community & Resources Center
Old 9th July 2007, 06:10 PM
mlee07946 Offline
Registered User
Join Date: Jul 2007
Posts: 4
resolv.conf ignores hosts file. host.conf is correct

An irritating problem:

system: Fedora 7 - clean install, x86_64

A client machine is listed in the /etc/hosts file on an nfs server.
The server refuses to recognise connections from the client.

Problem seems to be reverse DNS lookup: (IP address belonged to an old machine - and has been reassigned, but not changed in the nameserver database - I don't have time to wait for it to be changed, and it shouldn't matter from what I can understand). BUT -/etc/host.conf is set to read "hosts" first. Pinging/etc the client works ("ping clientname"), but nslookup and host both reslove the OLD machine name. It seems that the "hosts" entry in /etc/host.conf is being completely ignored? Why? Any ideas? How do I force it to use the hosts file entries?


/etc/hosts: servername localhost.localdomain localhost
XXX.XX.2.56 clientname.domain.com clientname


order hosts,bind


nameserver XXX.XX.XXX.X
nameserver XXX.XX.XXX.X
search domain.com

P.S: nis IS working between the two. Just NFS problem at the moment


Reply With Quote
Old 9th July 2007, 06:19 PM
mlee07946 Offline
Registered User
Join Date: Jul 2007
Posts: 4
(Follow-up: Must learn to preview!)

Oh - and /etc/nsswitch.conf is set to read hosts from files first as well - as below:

hosts: files nis dns
Reply With Quote
Old 17th September 2013, 08:37 PM
BillGradwohl Offline
Registered User
Join Date: Feb 2009
Location: Island of Roatan in the Caribbean
Posts: 263
Re: resolv.conf ignores hosts file. host.conf is correct

I know this is just a tad late, but ...

Reply With Quote

correct, file, hostconf, hosts, ignores, resolvconf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP over writing resolv.conf file khkachn Servers & Networking 10 25th January 2009 02:44 PM
newb: dns resolv.conf hosts gold Using Fedora 1 5th September 2007 04:40 PM
Hosts && and resolv.conf setup - not able to ping others alllle Servers & Networking 1 8th March 2007 08:47 PM
Missing file /var/run/ppp/resolv.conf greasyfingers Servers & Networking 2 2nd December 2006 09:38 PM

Current GMT-time: 04:37 (Monday, 21-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat