- use 'host' to lookup MX record. It's shorter
- use getent everywhere else for dns lookups, instead of dig; this
tests more of the o/s name resolution machinery and is generally
shorter.
- introduce assert_dns_record helper that performs forward and reverse
- lookup introduce some vars for holding constants, so we don't have
to repeat them
It's more precise to use dig rather than ping. The stock ubuntu image
doesn't come with dig (in package dnsutils), but luckily Aanand made
an image which is exactly ubuntu+dnsutils.