Skip to content

Instantly share code, notes, and snippets.

@adamburmister
Created February 17, 2011 09:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamburmister/831359 to your computer and use it in GitHub Desktop.
Save adamburmister/831359 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "--- Type A ---"
dig $1 A | grep -v "^\;" | grep -v "^$"
echo "--- Type CNAME ---"
dig $1 CNAME | grep -v "^\;" | grep -v "^$"
echo "--- Type NS ---"
dig $1 NS | grep -v "^\;" | grep -v "^$"
echo "--- Type MX ---"
dig $1 MX | grep -v "^\;" | grep -v "^$"
echo "--- Type TXT ---"
dig $1 TXT | grep -v "^\;" | grep -v "^$"
echo "--- END STANDARD DNS TYPES ---"
echo "--- Type AAAA ---"
dig $1 AAAA | grep -v "^\;" | grep -v "^$"
echo "--- Type AFSDB ---"
dig $1 AFSDB | grep -v "^\;" | grep -v "^$"
echo "--- Type CERT ---"
dig $1 CERT | grep -v "^\;" | grep -v "^$"
echo "--- Type DHCID ---"
dig $1 DHCID | grep -v "^\;" | grep -v "^$"
echo "--- Type DLV ---"
dig $1 DLV | grep -v "^\;" | grep -v "^$"
echo "--- Type DNAME ---"
dig $1 DNAME | grep -v "^\;" | grep -v "^$"
echo "--- Type DNSKEY ---"
dig $1 DNSKEY | grep -v "^\;" | grep -v "^$"
echo "--- Type DS ---"
dig $1 DS | grep -v "^\;" | grep -v "^$"
echo "--- Type HIP ---"
dig $1 HIP | grep -v "^\;" | grep -v "^$"
echo "--- Type IPSECKEY ---"
dig $1 IPSECKEY | grep -v "^\;" | grep -v "^$"
echo "--- Type KEY ---"
dig $1 KEY | grep -v "^\;" | grep -v "^$"
echo "--- Type LOC ---"
dig $1 LOC | grep -v "^\;" | grep -v "^$"
echo "--- Type NAPTR ---"
dig $1 NAPTR | grep -v "^\;" | grep -v "^$"
echo "--- Type NSEC ---"
dig $1 NSEC | grep -v "^\;" | grep -v "^$"
echo "--- Type NSEC3 ---"
dig $1 NSEC3 | grep -v "^\;" | grep -v "^$"
echo "--- Type NSECPARAM ---"
dig $1 NSEC3PARAM | grep -v "^\;" | grep -v "^$"
echo "--- Type PTR ---"
dig $1 PTR | grep -v "^\;" | grep -v "^$"
echo "--- Type RRSIG ---"
dig $1 RRSIG | grep -v "^\;" | grep -v "^$"
echo "--- Type SIG ---"
dig $1 SIG | grep -v "^\;" | grep -v "^$"
echo "--- Type SOA ---"
dig $1 SOA | grep -v "^\;" | grep -v "^$"
echo "--- Type SPF ---"
dig $1 SPF | grep -v "^\;" | grep -v "^$"
echo "--- Type SRV ---"
dig $1 SRV | grep -v "^\;" | grep -v "^$"
echo "--- Type SSHFP ---"
dig $1 SSHFP | grep -v "^\;" | grep -v "^$"
echo "--- Type TA ---"
dig $1 TA | grep -v "^\;" | grep -v "^$"
--- Type A ---
mojolly.com. 14314 IN A 69.163.190.143
--- Type CNAME ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type NS ---
mojolly.com. 14400 IN NS ns1.dreamhost.com.
mojolly.com. 14400 IN NS ns2.dreamhost.com.
mojolly.com. 14400 IN NS ns3.dreamhost.com.
ns2.dreamhost.com. 14247 IN A 208.96.10.221
ns3.dreamhost.com. 10948 IN A 66.33.216.216
ns1.dreamhost.com. 3402 IN A 66.33.206.206
--- Type MX ---
mojolly.com. 14400 IN MX 20 ALT1.ASPMX.L.GOOGLE.com.
mojolly.com. 14400 IN MX 10 ASPMX.L.GOOGLE.com.
mojolly.com. 14400 IN MX 30 ASPMX4.GOOGLEMAIL.com.
mojolly.com. 14400 IN MX 20 ALT2.ASPMX.L.GOOGLE.com.
mojolly.com. 14400 IN MX 30 ASPMX2.GOOGLEMAIL.com.
mojolly.com. 14400 IN MX 30 ASPMX5.GOOGLEMAIL.com.
mojolly.com. 14400 IN MX 30 ASPMX3.GOOGLEMAIL.com.
ASPMX.L.GOOGLE.com. 243 IN A 209.85.227.27
ASPMX4.GOOGLEMAIL.com. 1648 IN A 209.85.229.27
ALT2.ASPMX.L.GOOGLE.com. 70 IN A 74.125.155.27
ASPMX2.GOOGLEMAIL.com. 2721 IN A 74.125.43.27
ASPMX5.GOOGLEMAIL.com. 3406 IN A 74.125.157.27
ASPMX3.GOOGLEMAIL.com. 1491 IN A 72.14.213.27
ALT1.ASPMX.L.GOOGLE.com. 148 IN A 74.125.39.27
--- Type TXT ---
mojolly.com. 14400 IN TXT "google-site-verification=4zaKTHIU2CFDM6yG9quWZIkNICs-er5jmVqC7461U3g"
--- END STANDARD DNS TYPES ---
--- Type AAAA ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type AFSDB ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type CERT ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type DHCID ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type DLV ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type DNAME ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type DNSKEY ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type DS ---
com. 900 IN SOA a.gtld-servers.net. nstld.verisign-grs.com. 1297933930 1800 900 604800 86400
--- Type HIP ---
mojolly.com. 14312 IN A 69.163.190.143
. 10800 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2011021601 1800 900 604800 86400
--- Type IPSECKEY ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type KEY ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type LOC ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type NAPTR ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type NSEC ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type NSEC3 ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type NSECPARAM ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type PTR ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type RRSIG ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type SIG ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type SOA ---
mojolly.com. 14400 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type SPF ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type SRV ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type SSHFP ---
mojolly.com. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020300 15747 1800 1814400 14400
--- Type TA ---
mojolly.com. 14310 IN A 69.163.190.143
. 10800 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2011021601 1800 900 604800 86400
--- Type A ---
backchat.im. 14400 IN A 69.163.156.80
--- Type CNAME ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type NS ---
backchat.im. 14400 IN NS ns3.dreamhost.com.
backchat.im. 14400 IN NS ns1.dreamhost.com.
backchat.im. 14400 IN NS ns2.dreamhost.com.
ns1.dreamhost.com. 3359 IN A 66.33.206.206
ns2.dreamhost.com. 14204 IN A 208.96.10.221
ns3.dreamhost.com. 10905 IN A 66.33.216.216
--- Type MX ---
backchat.im. 14400 IN MX 20 ALT1.ASPMX.L.GOOGLE.COM.
backchat.im. 14400 IN MX 20 ALT2.ASPMX.L.GOOGLE.COM.
backchat.im. 14400 IN MX 10 ASPMX.L.GOOGLE.COM.
backchat.im. 14400 IN MX 30 ASPMX3.GOOGLEMAIL.COM.
backchat.im. 14400 IN MX 30 ASPMX4.GOOGLEMAIL.COM.
backchat.im. 14400 IN MX 30 ASPMX5.GOOGLEMAIL.COM.
backchat.im. 14400 IN MX 30 ASPMX2.GOOGLEMAIL.COM.
ALT2.ASPMX.L.GOOGLE.COM. 27 IN A 74.125.155.27
ASPMX.L.GOOGLE.COM. 200 IN A 209.85.227.27
ASPMX3.GOOGLEMAIL.COM. 1448 IN A 72.14.213.27
ASPMX4.GOOGLEMAIL.COM. 1605 IN A 209.85.229.27
ASPMX5.GOOGLEMAIL.COM. 3363 IN A 74.125.157.27
ASPMX2.GOOGLEMAIL.COM. 2678 IN A 74.125.43.27
ALT1.ASPMX.L.GOOGLE.COM. 105 IN A 74.125.39.27
--- Type TXT ---
backchat.im. 14400 IN TXT "google-site-verification=dx9Tls-6SmiIeYiY-l4VzKLX9Kqy72idYuEs5VV71QE"
backchat.im. 14400 IN TXT "v=spf1 mx a a:xmpp.backchat.im ip4:46.51.157.43/32 ip4:10.48.71.206/32 mx:mojolly.com ~all"
--- END STANDARD DNS TYPES ---
--- Type AAAA ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type AFSDB ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type CERT ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type DHCID ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type DLV ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type DNAME ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type DNSKEY ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type DS ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type HIP ---
backchat.im. 14398 IN A 69.163.156.80
--- Type IPSECKEY ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type KEY ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type LOC ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type NAPTR ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type NSEC ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type NSEC3 ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type NSECPARAM ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type PTR ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type RRSIG ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type SIG ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type SOA ---
backchat.im. 14400 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type SPF ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type SRV ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type SSHFP ---
backchat.im. 10800 IN SOA ns1.dreamhost.com. hostmaster.dreamhost.com. 2011020601 18329 1800 1814400 14400
--- Type TA ---
backchat.im. 14385 IN A 69.163.156.80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment