Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
checkdomain =========== See if a domain is set up correctly. Checkdomain uses some heuristics to see if a domain is a "root" domain or a "subdomain". Root in this case means a domain like mydomain.com and subdomain means shop.mydomain.com. It is "www.-aware" too. That means it assumes that if you're checking a root domain like mydomain.com it will also check to see if www.mydomain.com is pointing to the same place. It is smart enough not to do this for subdomains. When used from the command-line, checkdomain will print out the relevant records, errors and warnings. If a domain does not resolve to a correct IP address it will give you an error of some kind and warnings include using a CNAME on a root domain (which is technically not allowed and causes all sorts of problems when receiving email on that domain) or having the root domain and www. subdomain pointing to different places. Included are wrapper scripts for Tank and Ammo that double as examples. Usage ----- ./checkdomain.py --help Usage: checkdomain.py -i ip1,ip1... -c cname1,cname2... <domain> Options: -h, --help show this help message and exit -i IPS, --ips=IPS comma-delimited list of allowed A records -c CNAMES, --cnames=CNAMES comma-delimited list of allowed CNAMEs Requirements ------------ dnspython - http://www.dnspython.org/ In debian-based distros: sudo apt-get install python-dnspython Simon Willison's optfunc - http://simonwillison.net/2009/May/28/optfunc/ setup.py compatible fork here: https://github.com/lerouxb/optfunc