I am trying to update host infromation for my transition to IPv6, but so far none of my systems are displaying IPv6 host information using getent hosts. On a my computers running 42.1 any IPv6 entry in LDAP displays as 255.255.255.255.
The hosts used to generate output for this post are Atlas (42.1), Hagar (13.1), and Havoc (13.2).
For testing I have turned off nscd.
IPv6 Entry in LDAP
dn: cn=Hagar.IPv6.RDTE.ctl,ou=Hosts,dc=CTL,dc=CrewSystems
cn: Hagar.IPv6.RDTE.ctl
cn: Hagar.IPv6.RDTE
iphostnumber: XXXX:XXX:XXX:XXXX:20e:cff:fe33:2bec
macaddress: 00:0E:0C:33:2B:EC
objectclass: top
objectclass: ipHost
objectclass: device
objectclass: ieee802Device
IPv6 Entry in /etc/hosts
XXXX:XXX:XXX:XXXX:2e0:81ff:fe79:32e Atlas.IPv6.RDTE.ctl Atlas.IPv6.RDTE
There is no difference when I use hosts ahosts ahostsv4 or ahostsv6 when running getent.
Running getent hosts|wc -l on Atlas
54
Running getent hosts|wc -l on Hagar
53
Running getent hosts|wc -l on Havoc
53
Running getent ahosts|wc -l on Atlas
54
Running getent ahosts|wc -l on Hagar
53
Running getent ahosts|wc -l on Havoc
53
Running getent ahostsv4|wc -l on Atlas
54
Running getent ahostsv4|wc -l on Hagar
53
Running getent ahostsv4|wc -l on Havoc
53
Running getent ahostsv6|wc -l on Atlas
54
Running getent ahostsv6|wc -l on Hagar
53
Running getent ahostsv6|wc -l on Havoc
53
Atlas has 54 entries instead of 53 because it is showing the LDAP entry for Hagar.
255.255.255.255 Hagar.IPv6.RDTE.ctl Hagar.IPv6.RDTE
getent hosts on 13.1
Hagar:~ # getent hosts|grep IPv6
Hagar:~ #
getent hosts on 13.2
Havoc:~ # getent hosts|grep IPv6
Havoc:~ #
getent hosts on 42.1
Atlas:~ # getent hosts|grep IPv6
255.255.255.255 Hagar.IPv6.RDTE.ctl Hagar.IPv6.RDTE
Atlas:~ #
Hosts configratiuon in /etc/nsswitch.conf
Atlas:~ # grep hosts /etc/nsswitch.conf
hosts: files ldap dns
Hagar:~ # grep hosts /etc/nsswitch.conf
hosts: files ldap dns
Havoc:~ # grep hosts /etc/nsswitch.conf
hosts: files ldap dns
Ping shows me that the system is able to resolve host name to IP.
Ping on 13.1
Hagar:~ # ping6 -c1 Atlas.IPv6.RDTE
PING Atlas.IPv6.RDTE(Atlas.IPv6.RDTE.ctl) 56 data bytes
64 bytes from Atlas.IPv6.RDTE.ctl: icmp_seq=1 ttl=64 time=0.232 ms
--- Atlas.IPv6.RDTE ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.232/0.232/0.232/0.000 ms
Hagar:~ # ping6 -c1 Hagar.IPv6.RDTE
PING Hagar.IPv6.RDTE(XXXX:XXX:XXX:XXXX:20e:cff:fe33:2bec) 56 data bytes
64 bytes from XXXX:XXX:XXX:XXXX:20e:cff:fe33:2bec: icmp_seq=1 ttl=64 time=0.036 ms
--- Hagar.IPv6.RDTE ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.036/0.036/0.036/0.000 ms
Ping on 13.1 Host
Hagar:~ # ping6 -c1 Atlas.IPv6.RDTE
PING Atlas.IPv6.RDTE(Atlas.IPv6.RDTE.ctl) 56 data bytes
64 bytes from Atlas.IPv6.RDTE.ctl: icmp_seq=1 ttl=64 time=0.232 ms
--- Atlas.IPv6.RDTE ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.232/0.232/0.232/0.000 ms
Hagar:~ # ping6 -c1 Hagar.IPv6.RDTE
PING Hagar.IPv6.RDTE(XXXX:XXX:XXX:XXXX:20e:cff:fe33:2bec) 56 data bytes
64 bytes from XXXX:XXX:XXX:XXXX:20e:cff:fe33:2bec: icmp_seq=1 ttl=64 time=0.036 ms
--- Hagar.IPv6.RDTE ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.036/0.036/0.036/0.000 ms
Ping on 13.2
Havoc:~ # ping -c1 Atlas.IPv6.RDTE
ping: unknown host Atlas.IPv6.RDTE
Havoc:~ # ping -c 1 Hagar.IPv6.RDTE
ping: unknown host Hagar.IPv6.RDTE
Ping on 42.1 Host
Atlas:~ # ping6 -c 1 Atlas.IPv6.RDTE.ctl
PING Atlas.IPv6.RDTE.ctl(Atlas.IPv6.RDTE.ctl) 56 data bytes
64 bytes from Atlas.IPv6.RDTE.ctl: icmp_seq=1 ttl=64 time=0.124 ms
--- Atlas.IPv6.RDTE.ctl ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.124/0.124/0.124/0.000 ms
Atlas:~ # ping6 -c 1 Hagar.IPv6.RDTE.ctl
unknown host
None of the hosts show IPv6 Host information through getent. The 42.1 host does show IPv6 for the LDAP entry but shows it as an IPv4 Host. Only 13.1 was able resolve IPv6 host name to IP Address from /etc/hosts and LDAP.
Does anyone know how to configure getent to show IPv6 host info. Can anyone else confirm that 42.1 incorrectly shows LDAP IPv6 as IPv4. Thank you.
Dave W