Interrogate DNS records for a domain and get a colourful, detailed response.
Go to file
aidan 4e4bd5a707 fixed shell output 2024-03-20 10:56:17 +00:00
.gitignore Initial commit 2024-03-20 10:40:20 +00:00
LICENSE Initial commit 2024-03-20 10:40:20 +00:00
README.md fixed shell output 2024-03-20 10:56:17 +00:00
dnsplode.py added guard for unknown record type and enum-mx for common 2024-03-20 10:54:48 +00:00
requirements.txt added initial version of script 2024-03-20 10:42:20 +00:00

README.md

dnsplode

Interrogate DNS records for a domain and get a colourful, detailed response.

Usage

Turn on coloured output with -c.

common

Takes just a domain as an argument and enumerates multiple common record types. Use --common-records to print out the records which are queried. If there are no MX records found for the domain and you supply the argument --enum-mx, it will attempt to enumerate MX records for a selection of common mail subdomains.

$ python dnsplode.py common aidanmitchell.uk               
──────────────────────────────────── Common records retrieved for aidanmitchell.uk ─────────────────────────────────────
──────────────────────────────────────────────────── Record type: A ────────────────────────────────────────────────────
aidanmitchell.uk. 3600 IN A 188.166.159.72
─────────────────────────────────────────────────── Record type: CAA ───────────────────────────────────────────────────
aidanmitchell.uk. 3600 IN CAA 0 issuewild "letsencrypt.org"
aidanmitchell.uk. 3600 IN CAA 0 iodef "mailto:capolicy@aidanmitchell.uk"
aidanmitchell.uk. 3600 IN CAA 0 issue "letsencrypt.org"
─────────────────────────────────────────────────── Record type: MX ────────────────────────────────────────────────────
aidanmitchell.uk. 3600 IN MX 1 mail.tutanota.de.
─────────────────────────────────────────────────── Record type: NS ────────────────────────────────────────────────────
aidanmitchell.uk. 3600 IN NS ns3.dnsimple.com.
aidanmitchell.uk. 3600 IN NS ns4.dnsimple-edge.org.
aidanmitchell.uk. 3600 IN NS ns1.dnsimple.com.
aidanmitchell.uk. 3600 IN NS ns2.dnsimple-edge.net.
─────────────────────────────────────────────────── Record type: SOA ───────────────────────────────────────────────────
aidanmitchell.uk. 3600 IN SOA ns1.dnsimple.com. admin.dnsimple.com. 1562832895 86400 7200 604800 300
─────────────────────────────────────────────────── Record type: TXT ───────────────────────────────────────────────────
aidanmitchell.uk. 3600 IN TXT "v=spf1 include:spf.tutanota.de -all"
aidanmitchell.uk. 3600 IN TXT "t-verify=79f11c21799e6defa3afa6a889fa5d76"
───────────────────────────────── Mail security records retrieved for aidanmitchell.uk ─────────────────────────────────
────────────────────────────────────────────────── Record type: CNAME ──────────────────────────────────────────────────
s2._domainkey.aidanmitchell.uk. 3600 IN CNAME s2._domainkey.tutanota.de.
────────────────────────────────────────────────── Record type: CNAME ──────────────────────────────────────────────────
_mta-sts.aidanmitchell.uk. 3600 IN CNAME mta-sts.tutanota.de.
────────────────────────────────────────────────── Record type: CNAME ──────────────────────────────────────────────────
mta-sts.aidanmitchell.uk. 3600 IN CNAME mta-sts.tutanota.de.
─────────────────────────────────────────────────── Record type: TXT ───────────────────────────────────────────────────
_dmarc.aidanmitchell.uk. 3600 IN TXT "v=DMARC1; p=quarantine; adkim=s"
────────────────────────────────────────────────── Record type: CNAME ──────────────────────────────────────────────────
s1._domainkey.aidanmitchell.uk. 3600 IN CNAME s1._domainkey.tutanota.de.

resolve

resolve takes one domain and a space-separated selection of record types. It will ignore any record types that are invalid and will only return results for records that have valid responses. If you supply the argument --enum-mx, it will attempt to enumerate MX records for a selection of common mail subdomains.

$ python dnsplode.py resolve aidanmitchell.uk A MX
───────────────────────────────────── Records A, MX retrieved for aidanmitchell.uk ─────────────────────────────────────
──────────────────────────────────────────────────── Record type: A ────────────────────────────────────────────────────
aidanmitchell.uk. 3529 IN A 188.166.159.72
─────────────────────────────────────────────────── Record type: MX ────────────────────────────────────────────────────
aidanmitchell.uk. 3530 IN MX 1 mail.tutanota.de.

debug

Supply the --debug argument to get more detailed output of any failed resolutions, mail enumeration, and other data.