Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resolution via /etc/hosts doesn't work

Status
Not open for further replies.

neuralnode

Technical User
Sep 12, 2007
59
0
0
PL

Hi all,

I have a strange issue on a Solaris 10 box. Hostnames are rsolved ONLY via DNS, never via /etc/hosts. I don't understand why, because:

1. /etc/nsswitch.conf entries are set to "files dns" - I have also tried only "files"

2. the /etc/inet/hosts file is chmoded 444 (as should)

3. hostnames contained in /etc/hosts are NOT resolved, unless they are known by DNS...

4. ...so when /etc/resolv.conf is deleted and "dns" attribute wiped out from /etc/nsswitch.conf, NO hostname will be resolved.

Why is that happening? Do you guys have any clue?

Thx in advance for your help.


 
I believe in Sol10, the 'files' is actually /etc/inet/ipnodes.

Just symlink /etc/hosts to that file..

You can verify by trussing ping for example.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top