Sysadmin testing

I guess that I have read (and used) too much XP driven programming and testing, so I started devising tests after each sysadmin change also. So, here are some tips assorted by services:



Test all MX records for domain by sending e-mail to

host -t mx | awk '{ print $4 }' | xargs -i swaks  -t -s {}


Dumps all zones from all name servers.

host -t ns | awk '{ print $3 }' | xargs -i host -t soa -va {}