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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -