Small refactoring in commandline call to check ptr

This commit is contained in:
Michael Kroes 2016-02-29 18:56:05 +01:00
parent 4fb0f71825
commit ad8cf1319f
1 changed files with 1 additions and 2 deletions

View File

@ -945,9 +945,8 @@ if __name__ == "__main__":
# Run only the primary hostname checks, specifically the ptr check
shell('check_call', ["/usr/sbin/rndc", "flush"], trap=True)
output = ConsoleOutput()
domain=env["PRIMARY_HOSTNAME"]
my_ips = env['PUBLIC_IP'] + ((" / "+env['PUBLIC_IPV6']) if env.get("PUBLIC_IPV6") else "")
check_reverse_dns(domain, my_ips, output, env)
check_reverse_dns(env["PRIMARY_HOSTNAME"], my_ips, output, env)
elif sys.argv[1] == "--check-primary-hostname":
# See if the primary hostname appears resolvable and has a signed certificate.