I just ran into this bug as well. The function is ipv4 only which is unfortunate. If DNS fails to resolve it falls back on this: https://docs.python.org/3/library/socket.html#socket.gethostbyname which is v4 only.
I just ran into this bug as well. The function is ipv4 only which is unfortunate. If DNS fails to resolve it falls back on this: https:/ /docs.python. org/3/library/ socket. html#socket. gethostbyname which is v4 only.