dns - Return IPv6 address Python from domain name -
so searched little on internet , found socket class can return ipv4 address domain name in python. ip address of domain on shared host says how it.
can same thing return ipv6 address? looks support ipv6 in python bit limited , found no resources searching on internet.
take here, think looking for.
socket.getaddrinfo("example.com", none, socket.af_inet6)
Comments
Post a Comment