This is what the attached script gives me now (Fedora 32, Glibc 2.31):
getaddrinfo host="None" hints.ai_flags=AI_ADDRCONFIG:
::1
127.0.0.1
getaddrinfo host="localhost" hints.ai_flags=AI_ADDRCONFIG:
::1
127.0.0.1
getaddrinfo host="127.0.0.1" hints.ai_flags=AI_ADDRCONFIG:
127.0.0.1
getaddrinfo host="localhost4" hints.ai_flags=AI_ADDRCONFIG:
127.0.0.1
getaddrinfo host="::1" hints.ai_flags=AI_ADDRCONFIG:
::1
getaddrinfo host="localhost6" hints.ai_flags=AI_ADDRCONFIG:
::1
getaddrinfo host="195.47.235.3" hints.ai_flags=AI_ADDRCONFIG:
195.47.235.3
getaddrinfo host="2a02:38::1001" hints.ai_flags=AI_ADDRCONFIG:
2a02:38::1001
getaddrinfo host="info.nix.cz" hints.ai_flags=AI_ADDRCONFIG:
2a02:38::1001
195.47.235.3
getaddrinfo host="www.google.com" hints.ai_flags=AI_ADDRCONFIG:
2a00:1450:400f:809::2004
172.217.21.132
So the output is fine now.
HOWEVER, if I query with family=AF_INET, I still get two results:
[(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1',
0)),
(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1',
0))]
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/582585
Title:
getaddrinfo() returns duplicate addresses under AI_ADDRCONFIG
To manage notifications about this bug go to:
https://bugs.launchpad.net/eglibc/+bug/582585/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs