Odd Solaris 10 DNS issue

From: Rob Windsor (windsor@warthog.com)
Date: Wed May 17 2006 - 12:40:23 EDT


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.

To make it even more fun, solaris appears to be selective on when it
does this:
> : sol10; grep 10.108.22.78 /etc/inet/hosts
> 10.108.22.78 laptop laptop.mis.mycompany.com

> : sol10; host 10.108.22.78
> 78.22.108.10.in-addr.arpa domain name pointer 0A6C164E.mis.mycompany.com.

> : sol10; ping -s 10.108.22.78
> PING 10.108.22.78: 56 data bytes
> 64 bytes from laptop (10.108.22.78): icmp_seq=0. time=0.716 ms
> ^C
> ----10.108.22.78 PING Statistics----
> 1 packets transmitted, 1 packets received, 0% packet loss
> round-trip (ms) min/avg/max/stddev = 0.716/0.716/0.716/NaN

I've tried restarting nscd, I've even rebooted the sol10 box.

This is rather odd.

Rob++

-- 
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


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:39:54 EDT