sopel icon indicating copy to clipboard operation
sopel copied to clipboard

[ip] Include IP in .ip output

Open bui opened this issue 10 years ago • 2 comments

It'd be useful to be able to use .ip to get an IP from a hostname. Currently it only shows the IP if there isn't a hostname, would it not be good to also add the IP in front of it?

current: <Kemo> .ip bui.pm <Lloid> [IP/Host Lookup] Hostname: bui.pm | Location: United States | Region: CA | ISP: FranTech Solutions

proposed: <Kemo> .ip bui.pm <Lloid> [IP/Host Lookup] IP: 209.141.38.71 | Hostname: bui.pm | Location: United States | Region: CA | ISP: FranTech Solutions

bui avatar Apr 07 '14 20:04 bui

How would you handle A records with more than one IP?

How would you handle IPv6 / or IPv6 + IPv4 dual stack?

elad661 avatar Aug 14 '14 09:08 elad661

Maybe an additional command for lookups? Easy enough with socket.getaddrinfo

kwaaak avatar Jan 04 '19 02:01 kwaaak