Getting Started, Documentation, Tips & Tricks

ipv6 resolver

ipv6 works, but how can I enable resolving of ipv6 addresses?
Code:
octane2#ping -c 5 google.com
PING google.com (173.194.69.101): 56 data bytes
64 bytes from 173.194.69.101: icmp_seq=0 ttl=49 time=41.188 ms
64 bytes from 173.194.69.101: icmp_seq=1 ttl=49 time=45.635 ms
64 bytes from 173.194.69.101: icmp_seq=2 ttl=49 time=41.290 ms
64 bytes from 173.194.69.101: icmp_seq=3 ttl=49 time=40.357 ms
64 bytes from 173.194.69.101: icmp_seq=4 ttl=49 time=40.853 ms

----google.com PING Statistics----
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max = 40.357/41.865/45.635 ms

octane2#host -t aaaa google.com
google.com has AAAA address 2a00:1450:4008:c01::8a

octane2#ping -c 5 2a00:1450:4008:c01::8a
PING 2a00:1450:4008:c01::8a (2a00:1450:4008:c01::8a): 56 data bytes
64 bytes from 2a00:1450:4008:c01::8a: icmp6_seq=0 ttl=55 time=60.060 ms
64 bytes from 2a00:1450:4008:c01::8a: icmp6_seq=1 ttl=55 time=60.238 ms
64 bytes from 2a00:1450:4008:c01::8a: icmp6_seq=2 ttl=55 time=60.014 ms
64 bytes from 2a00:1450:4008:c01::8a: icmp6_seq=3 ttl=55 time=60.455 ms
64 bytes from 2a00:1450:4008:c01::8a: icmp6_seq=4 ttl=55 time=59.454 ms

----2a00:1450:4008:c01::8a PING Statistics----
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max = 59.454/60.044/60.455 ms

octane2#ping -6 google.com
ping: google.com: Non-recoverable failure in name resolution

Any idea?

_________________
:Tezro: :Fuel: :Octane2: :Octane: :Onyx2: :O2+: :O2: :Indy: :Indigo: :Cube:
Solved: the problem was my /etc/nsswitch.conf:
Code:
ipnodes:                files
changed to
Code:
ipnodes:                files dns
And now it woks:
Code:
octane2#ping -c 5 google.com
PING google.com (2a00:1450:4008:c01::8b): 56 data bytes
64 bytes from 2a00:1450:4008:c01::8b: icmp6_seq=0 ttl=55 time=60.025 ms
64 bytes from 2a00:1450:4008:c01::8b: icmp6_seq=1 ttl=55 time=62.313 ms
64 bytes from 2a00:1450:4008:c01::8b: icmp6_seq=2 ttl=55 time=61.902 ms
64 bytes from 2a00:1450:4008:c01::8b: icmp6_seq=3 ttl=55 time=60.641 ms
64 bytes from 2a00:1450:4008:c01::8b: icmp6_seq=4 ttl=55 time=64.305 ms

----2a00:1450:4008:c01::8b PING Statistics----
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max = 60.025/61.837/64.305 ms

_________________
:Tezro: :Fuel: :Octane2: :Octane: :Onyx2: :O2+: :O2: :Indy: :Indigo: :Cube: