@@ -75,6 +76,9 @@ if not test(ipaddr, "Mail-in-a-Box"):
print("Please run the Mail-in-a-Box setup script on %s again."%hostname)
sys.exit(1)
else:
print("The Mail-in-a-Box provided correct DNS answers.")
print()
# If those settings are OK, also test Google's Public DNS
# to see if the machine is hooked up to recursive DNS properly.
ifnottest("8.8.8.8","Google Public DNS"):
...
...
@@ -82,10 +86,15 @@ else:
print("Check that the nameserver settings for %s are correct at your domain registrar. It may take a few hours for Google Public DNS to update after changes on your Mail-in-a-Box."%hostname)
sys.exit(1)
else:
print("Your domain registrar or DNS host appears to be configured correctly as well. Public DNS provides the same answers.")
print()
# And if that's OK, also check reverse DNS (the PTR record).
ifnottest_ptr("8.8.8.8","Google Public DNS (Reverse DNS)"):
print()
print("The reverse DNS for %s is not correct. Consult your ISP for how to set the reverse DNS (also called the PTR record) for %s to %s."%(hostname,hostname,ipaddr))
sys.exit(1)
else:
print("And the reverse DNS for the domain is correct.")