An alternative to Limnoria's DNS function.
Returns the ip of <hostname | URL | nick | IPv4 or IPv6> or the reverse DNS hostname of <ip> using Python's socket library.
This plugin uses ipstack to get data. An API (free) key is required.
Get an API key: ipstack
Unload the Internet plugin as it conflicts with this plugin
/msg yourbot unload Internet
Go into your Limnoria plugin dir, usually ~/runbot/plugins and run:
git clone https://github.com/Alcheri/MyDNS.git
To install additional requirements, run from /plugins/URLtitle:
pip install --upgrade -r requirements.txt
Next, load the plugin:
/msg bot load URLtitle
-
config plugins.MyDNS.ipstackAPI [your_key_here]
-
config channel #channel plugins.MyDNS.enable True or False (On or Off)
Using
@dns [hostname | URL | nick | IPv4 or IPv6]
<Barry> @dns crawl-203-208-60-1.googlebot.com
<Borg>${\textsf{\color{teal}DNS: }}$ crawl-203-208-60-1.googlebot.com resolves to [203.208.60.1]${\textsf{\color{teal}LOC: }}$ City:Beijing State:Beijing Long:116.37922668457031 Lat:39.91175842285156 Country Code:CN Country:ChinaPost/Zip Code:100000
<Barry> @dns 203.7.22.140
<Borg>${\textsf{\color{teal}DNS: }}$ <203-7-22-140> [203-7-22-140.dyn.iinet.net.au <> 203.7.22.140]${\textsf{\color{teal}LOC: }}$ City: Ballarat State: Victoria Long: 143.8470458984375 Lat: -37.56332015991211 Country Code: AU Country: AustraliaPost/Zip Code: 3350
<Barry> @dns Alice
<Borg>${\textsf{\color{teal}DNS: }}$ [Alice.Bot.mrbenc.net <> 2001:19f0:9002:1806:dead:beef:0:cafe]${\textsf{\color{teal}LOC: }}$ City: Flagami State: Florida Long: -80.31195831298828 Lat: 25.762859344482422 Country Code: US Country: United StatesPost/Zip Code: 33144
Copyright © MMXXV, Barry Suridge