Python resolve a host name with IPv6 address
socket.getaddrinfo supports IPv6. You just need to set family
to AF_INET6
.
socket.getaddrinfo("example.com", None, socket.AF_INET6)
socket.getaddrinfo supports IPv6. You just need to set family
to AF_INET6
.
socket.getaddrinfo("example.com", None, socket.AF_INET6)