digbot - DiG requests in IRC

Discuss new and miscellaneous projects that don't have a home elsewhere in the forum.
User avatar
chip
T2 Operator
Posts: 41
Joined: Mon Jan 18, 2016 2:19 am
Location: Colorado, USA
Contact:

digbot - DiG requests in IRC

Postby chip » Tue Jan 19, 2016 8:33 pm

I'm essentially in on-call mode right now so I am working on developing a tool to troubleshoot DNS problems cooperatively within IRC. For example:

joeuser: Is there something wrong with foo.chip.geek? I can't reach it!
achip: let's see
achip: digbot: dig foo.chip.geek
digbot: Got a status of NXDOMAIN for query foo.chip.geek
achip: oops, let's try another OpenNIC DNS Server
achip: digbot: dig foo.chip.geek A 1.2.3.4:5353
digbot: Got a status of NXDOMAIN for query foo.chip.geek
achip: hmm let me fix that then...


It should be able to return both full verbose reports and specific queries in a way that doesn't interfere with the flow of conversation in IRC. You can play around with a dev instance at ##digbot on Freenode
achip on #opennic | chip.geek

User avatar
chip
T2 Operator
Posts: 41
Joined: Mon Jan 18, 2016 2:19 am
Location: Colorado, USA
Contact:

Re: digbot - DiG requests in IRC

Postby chip » Fri Jan 22, 2016 4:49 am

digbot now has rudimentary natural language interpretation similar to below:
achip: digbot: test google.com
digbot: google.com. 182 IN A 216.58.217.46
achip: digbot: test google.com on uk1-1.opennic.nerds.io
digbot: google.com. 170 IN A 216.58.213.142
achip: digbot: test google.com using uk1-1.opennic.nerds.io
digbot: google.com. 163 IN A 216.58.213.142
achip: digbot: test chip.geek with uk1-1.opennic.nerds.io
digbot: chip.geek. 300 IN A 96.90.175.167
achip: digbot: test google.com AAAA using 96.90.175.167
digbot: google.com. 291 IN AAAA 2607:f8b0:400f:803::200e
achip: digbot: test google.com AAAA using 96.90.175.167 use IPv6
achip: oh that makes no sense
digbot: Sorry I timed out trying to query 96.90.175.167
achip: digbot: test google.com AAAA using den1-1.opennic.nerds.io use IPv6
digbot: google.com. 300 IN AAAA 2404:6800:4001:801::1009
achip: digbot: test google.com AAAA using den1-1.opennic.nerds.io port 666 use IPv6
digbot: Sorry I timed out trying to query den1-1.opennic.nerds.io
achip: digbot: test google.com AAAA using den1-1.opennic.nerds.io use IPv6 short
digbot: 2404:6800:4001:801::1009
achip: digbot: test google.com AAAA using den1-1.opennic.nerds.io use IPv6 short using tcp
digbot: 2404:6800:4001:801::1009
achip: digbot: test google.com AAAA using den1-1.opennic.nerds.io use IPv6 tcp verbose
digbot: You can see the verbose reply at http://digbot.chip.geek/google_com1453437632.txt or http://digbot.nerds.io/google_com1453437632.txt
achip on #opennic | chip.geek

verax
Site Admin
Posts: 30
Joined: Mon Jan 18, 2016 3:16 am

Re: digbot - DiG requests in IRC

Postby verax » Sat Jan 23, 2016 1:17 am

Very cool. This will definitely be handy for helping out newbies with troubleshooting their new website that they _totally_ set up right!

User avatar
chip
T2 Operator
Posts: 41
Joined: Mon Jan 18, 2016 2:19 am
Location: Colorado, USA
Contact:

Re: digbot - DiG requests in IRC

Postby chip » Sat Jan 23, 2016 5:41 am

Ya hopefully it will help. It's also useful for troubleshooting new server setups. You can also invite digbot to any channel you are operator (standard IRC operation) in or I can tell the bot to join a specific channel.
achip on #opennic | chip.geek

User avatar
chip
T2 Operator
Posts: 41
Joined: Mon Jan 18, 2016 2:19 am
Location: Colorado, USA
Contact:

Re: digbot - DiG requests in IRC

Postby chip » Fri Feb 05, 2016 2:50 am

digbot is now available as a Docker container since that's the cool thing to do now:

achip/digbot
achip on #opennic | chip.geek


Return to “Misc. Projects”

Who is online

Users browsing this forum: No registered users and 1 guest