Theory of Who

June 23, 2009 by Dave Ross

My prediction:

When the Doctor went back to 1953 in “The Wire”, he established an alternate timeline. Matt Smith’s Doctor is actually the second Doctor in his timeline, portrayed by Patrick Troughton in the original from 1966-1969.

The Doctor’s nemesis, the Master, is of course not dead. The Master in Matt Smith’s alternate-Troughton-timeline will be played by…David Tenant. But, to emphasize that he’s not the Tenth Doctor, he will have a sporty beard to rival Roger Delgado’s, or maybe just a goatee to show he’s evil.

Hey, it worked for Star Trek.

 

Script to dump a DNS record

June 5, 2009 by Dave Ross

Queries all the DNS record types listed in Wikipedia, even the ones nobody’s ever heard of:

#!/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 "^$"