So I have been using the following method lately proposed here: Return IPv6 address Python from domain name in order to get IPv6 addresses of some sites:
def getIPv6Addr(input):
socket.getaddrinfo(input, None, socket.AF_INET6)
The method was working a couple of days ago nevertheless, when I use it now it gives me None as a response. For example print getIPv6Addr("www.google.com")
returns None
whereas it should return 2a00:1450:400c:c01::69
.
Can anyone tell me why this is happening?