add caldav and carddav records to DNS status checks

This commit is contained in:
Scott Bronson 2016-09-30 18:51:09 -07:00
parent da5497cd1c
commit 1cab5a6d4b
1 changed files with 10 additions and 0 deletions

View File

@ -620,6 +620,16 @@ def check_mail_domain(domain, env, output):
which may prevent recipients from receiving your mail. which may prevent recipients from receiving your mail.
See http://www.spamhaus.org/dbl/ and http://www.spamhaus.org/query/domain/%s.""" % (dbl, domain)) See http://www.spamhaus.org/dbl/ and http://www.spamhaus.org/query/domain/%s.""" % (dbl, domain))
if domain != env["PRIMARY_HOSTNAME"]:
for dav in ("card", "cal"):
dav_domain = "_" + dav + "davs._tcp." + domain
expected = "0 0 443 " + env["PRIMARY_HOSTNAME"]
values = query_dns(dav_domain, "SRV")
if expected == values:
output.print_ok("Domain's %sdav is set properly. [%s%s]" % (dav, dav_domain, expected))
else:
output.print_warning("This domain should set a %sdav record: %s%s" % (dav, dav_domain, expected))
def check_web_domain(domain, rounded_time, ssl_certificates, env, output): def check_web_domain(domain, rounded_time, ssl_certificates, env, output):
# See if the domain's A record resolves to our PUBLIC_IP. This is already checked # See if the domain's A record resolves to our PUBLIC_IP. This is already checked
# for PRIMARY_HOSTNAME, for which it is required for mail specifically. For it and # for PRIMARY_HOSTNAME, for which it is required for mail specifically. For it and