Closed nbarrientos closed 3 years ago
I can reproduce it with the latest version available:
(icmplib) root@x:~# pip list | grep icmplib
icmplib 1.2.1
(icmplib) root@x:~# python3
Python 3.8.6 (default, Sep 25 2020, 09:36:53)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from icmplib import ping
>>> host = ping('2a00:1450:400a:802::200e')
>>> host.is_alive
True
>>> host = ping('ipv6.google.com')
>>> host.is_alive
False
>>>
Hi, I confirm the problem. FQDN resolution currently only works for IPv4 addresses. I will look into it to correct it as soon as possible. Thank you for reporting this issue :)
icmplib 1.2.2
is available! This release adds DNS resolution for IPv6 addresses and improves overall performance. Can you update the library and tell me if your problem persists?
Ça roule, merci! :)
~/venvs $ source icmplib/bin/activate
~/venvs $ pip install --upgrade icmplib
Collecting icmplib
Downloading icmplib-1.2.2-py3-none-any.whl (26 kB)
Installing collected packages: icmplib
Attempting uninstall: icmplib
Found existing installation: icmplib 1.2.1
Uninstalling icmplib-1.2.1:
Successfully uninstalled icmplib-1.2.1
Successfully installed icmplib-1.2.2
~/venvs $ sudo icmplib/bin/python3
...
Type "help", "copyright", "credits" or "license" for more information.
>>> from icmplib import ping
>>> host = ping('ipv6.google.com')
>>> host.is_alive
True
You can probably reproduce the same with
ipv6.google.com
:Issue originally reported here: https://github.com/home-assistant/core/issues/40232#issuecomment-704425584