getmac icon indicating copy to clipboard operation
getmac copied to clipboard

IPv6 hostname resolution

Open GhostofGoes opened this issue 5 years ago • 2 comments

Currently, hostnames only resolve to IPv4 addresses, as documented in the "Known Issues" section in the README. They should be able to resolve to IPv6 addresses as well as IPv4, and the IPv6 returns handled by the appropriate IPv6 logic in getmac.

The obvious solution is to use socket.getaddrinfo instead of socket.gethostbyname to resolve a hostname to an IP address, it just needs to be implemented and tested.

GhostofGoes avatar May 09 '19 03:05 GhostofGoes

Hi :wave:.

I'd like to pick this up, if that's okay?

stuartmccoll avatar Oct 01 '19 18:10 stuartmccoll

Sure, go for it :)

GhostofGoes avatar Oct 02 '19 04:10 GhostofGoes