Solaris 10 does nsswitch.conf "hosts files dns" work?

From: simonb (simonb@zapik.co.uk)
Date: Fri Mar 31 2006 - 17:10:51 EST


I hope you can help me:

System is a Sunblade 250 running Solaris 10 wit han IP of 10.192.1.3 I
have another machine called mars IP 10.192.168.1.100. I can't get the
box to ping mars from the entry in /etc/hosts. It always goes to dns.
Have a look at these tests / files :

hosts:
127.0.0.1 localhost
192.168.1.3 saturn
192.168.1.100 mars

nsswitch.conf:
# DNS service expects that an instance of svc:/network/dns/client be
# enabled and online.

passwd: files
group: files

# You must also set up the /etc/resolv.conf file for DNS name
# server lookup. See resolv.conf(4).
hosts: files dns

# Note that IPv4 addresses are searched for in all of the ipnodes
databases
# before searching the hosts databases.
ipnodes: files dns

networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
# At present there isn't a 'files' backend for netgroup; the system
will
# figure it out pretty quickly, and won't use netgroups at all.
netgroup: files
automount: files
aliases: files
services: files
printers: user files

auth_attr: files
prof_attr: files
project: files

saturn# cat resolv.conf
nameserver 194.247.47.47
nameserver 194.247.40.126

saturn#saturn# getent hosts mars
192.168.1.100 mars

nslookup can't find it.

saturn# nslookup mars
Server: 194.247.47.47
Address: 194.247.47.47#53

** server can't find mars: NXDOMAIN

saturn# ping -s mars
PING mars: 56 data bytes
64 bytes from 164.109.80.47: icmp_seq=0. time=149. ms
64 bytes from 164.109.80.47: icmp_seq=1. time=114. ms

saturn# ping -s 192.168.1.100
PING 192.168.1.100: 56 data bytes
64 bytes from mars (192.168.1.100): icmp_seq=0. time=0.406 ms
64 bytes from mars (192.168.1.100): icmp_seq=1. time=0.321 ms
64 bytes from mars (192.168.1.100): icmp_seq=2. time=0.302 ms

saturn# traceroute mars
traceroute to mars (164.109.80.47), 30 hops max, 40 byte packets
 1 router (192.168.1.1) 1.268 ms 1.116 ms 1.209 ms
 2 no-dns.as5587.net (213.253.132.69) 43.626 ms 27.634 ms 53.283 ms
 3 lon-router1.zetnet.net (194.247.40.65) 48.076 ms 48.554 ms 48.056
ms
 4 no-dns.as5587.net (213.253.132.74) 28.890 ms 48.538 ms 31.282 ms
 5 821.gi0-1.rtr2.iph.lon.as5587.net (195.13.89.17) 28.397 ms 27.489
ms 32.289 ms
 6 900.gi0-0-0.rtr2.tc9.lon.as5587.net (213.253.141.222) 54.357 ms
62.258 ms 57.881 ms
 7 ldn-tch-i1-link.telia.net (213.248.100.189) 29.893 ms 70.575 ms
56.199 ms
 8 ldn-b2-link.telia.net (80.91.249.161) 33.805 ms 67.955 ms 65.939
ms
 9 ldn-bb2-pos1-3-0.telia.net (213.248.64.73) 29.392 ms 29.064 ms
66.482 ms
10 nyk-bb2-pos0-2-0.telia.net (213.248.65.94) 97.791 ms 135.315 ms
96.276 ms
11 nyk-b1-link.telia.net (213.248.80.66) 128.642 ms 110.634 ms
114.134 ms
12 2-0.POS.GW6.NYC9.ALTER.NET (63.65.167.41) 117.503 ms 105.440 ms
116.291 ms
13 0.so-4-2-0.XL1.NYC9.ALTER.NET (152.63.24.66) 99.300 ms 116.092 ms
119.112 ms
14 0.so-0-0-0.XL1.DCA6.ALTER.NET (152.63.35.121) 127.234 ms 100.835
ms 138.856 ms
15 0.so-6-0-0.GW6.DCA6.ALTER.NET (152.63.41.221) 122.122 ms 166.207
ms 121.967 ms
16 digex-gw.customer.alter.net (157.130.214.102) 106.524 ms 118.819
ms 107.572 ms
17 164.109.3.218 (164.109.3.218) 134.557 ms 150.969 ms 120.474 ms
18 164.109.80.47 (164.109.80.47) 104.529 ms 126.963 ms 117.758 ms
saturn#

The mac address is from my mars!

saturn# arp -a
Net to Media Table: IPv4
Device IP Address Mask Flags Phys Addr
------ -------------------- --------------- ----- ---------------
bge0 mars 255.255.255.255 00:e0:18:ab:31:35
bge0 router 255.255.255.255 00:0d:28:f9:b6:50
bge0 saturn 255.255.255.255 SP 00:03:ba:5c:d6:8b
bge0 BASE-ADDRESS.MCAST.NET 240.0.0.0 SM 01:00:5e:00:00:00
saturn#

[root@mars ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:E0:18:AB:31:35
          inet addr:192.168.1.100 Bcast:192.168.1.255
Mask:255.255.255.0

-- 
simonb <simonb@zapik.co.uk>
_______________________________________________
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:28 EDT