From df309892ac34639260ee6a4a64df1ad1bdceefdd Mon Sep 17 00:00:00 2001 From: Corbin Date: Mon, 17 Apr 2023 10:06:48 -0400 Subject: [PATCH] Add README --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..28fa4ed --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +# email_dns.py + +A simple Python script to resolve all email-related DNS records for a domain + +Example + +``` +$ python email_dns.py cbarts.net +{ + "cbarts.net": { + "mx": [ + { + "exchanger": "mail.protonmail.ch.", + "preference": "10" + }, + { + "exchanger": "mailsec.protonmail.com.", + "preference": "20" + } + ], + "spf": "v=spf1 include:_spf.protonmail.ch mx -all", + "dkim": [ + { + "type": "CNAME", + "value": "protonmail.domainkey.d54jb2xmwmmyjawzyztmko2lix3f4dz4uwu2rptmnailfrd6hqgeq.domains.proton.ch." + }, + { + "type": "CNAME", + "value": "protonmail2.domainkey.d54jb2xmwmmyjawzyztmko2lix3f4dz4uwu2rptmnailfrd6hqgeq.domains.proton.ch." + } + ], + "dmarc": "v=DMARC1; p=quarantine; rua=mailto:admin@cbarts.net,mailto:86be0037@mxtoolbox.dmarc-report.com; ruf=mailto:admin@cbarts.net,mailto:86be0037@forensics.dmarc-report.com" + } +} +```