Re: SUMMARY: Odd Solaris 10 DNS issue

From: Rob Windsor <windsor_at_warthog.com>
Date: Wed May 17 2006 - 19:21:38 EDT
Stopping NSCD and running truss(1m) on the process indicates that the 
resolver routines reference ipnodes(4) and then DNS, skipping hosts(4) 
entirely.

All documentation indicates that this is a bug.

Workaround is to whack ipnodes(4) and make it a symlink pointing to 
hosts(4).

Bad Sun, no cookie!

Thanks to Aaron Lineberger, Ric Anderson, and Christopher McNabb for 
their input.

Rob++

Rob Windsor wrote:
> Here's the basic problem:
> 
>>: sol10; egrep '^hosts' /etc/nsswitch.conf
>>hosts:      files dns
>>
>>: sol10; ll /etc/hosts
>>lrwxrwxrwx   1 root     root          12 Mar 31 13:57 /etc/hosts -> ./inet/hosts
>>
>>: sol10; ll /etc/inet/hosts
>>-r--r--r--   1 root     sys         3222 May 17 11:10 /etc/inet/hosts
>>
>>: sol10; grep 10.108.20.97 /etc/inet/hosts
>>10.108.20.97    adminbox adminbox.mis.mycompany.com
>>
>>: sol10; cat /etc/resolv.conf
>>domain mis.mycompany.com
>>search mis.mycompany.com mycom.com
>>nameserver 10.108.20.81
>>
>>: sol10; host 10.108.20.97
>>97.20.108.10.in-addr.arpa domain name pointer adminbox.MIS.mycompany.com.
>>
>>: sol10; ping -s 10.108.20.97
>>PING 10.108.20.97: 56 data bytes
>>64 bytes from adminbox.MIS.mycompany.com (10.108.20.97): icmp_seq=0. time=0.622
>>ms
>>^C
>>----10.108.20.97 PING Statistics----
>>1 packets transmitted, 1 packets received, 0% packet loss
>>round-trip (ms)  min/avg/max/stddev = 0.622/0.622/0.622/NaN
> 
> 
> Items to note are that the PTR record for 10.108.20.97 returns 
> adminbox.MIS.mycompany.com (note caps).  The hosts file "should" 
> shortcut the lookup and simply return "adminbox" on the ping.


-- 
Internet: windsor@warthog.com                             __o
Life: Rob@Carrollton.Texas.USA.Earth                    _`\<,_
                                                        (_)/ (_)
"They couldn't hit an elephant at this distance."
   -- Major General John Sedgwick
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon May 29 07:40:45 2006

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:58 EST