Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Failed to resolve hostname under IPv6 only network #7

Closed
NeverBehave opened this issue Dec 26, 2020 · 0 comments · Fixed by #8
Closed

Failed to resolve hostname under IPv6 only network #7

NeverBehave opened this issue Dec 26, 2020 · 0 comments · Fixed by #8

Comments

@NeverBehave
Copy link
Contributor

system.resolve_hostname will fail to acquire service address under IPv6 only network as socket.gethostbyname does not support IPv6.

One of the solution will be using socket.getaddrinfo.

Reference: https://stackoverflow.com/questions/15373288/python-resolve-a-host-name-with-ipv6-address

@NeverBehave NeverBehave changed the title Failed to resolve address under IPv6 only network Failed to resolve hostname under IPv6 only network Dec 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant