summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dnscheck_nsd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/dnscheck_nsd.py b/dnscheck_nsd.py
index b05b53b..9d081d6 100644
--- a/dnscheck_nsd.py
+++ b/dnscheck_nsd.py
@@ -165,7 +165,7 @@ def parse_file(f):
def main():
# User friendly usage output
parser = argparse.ArgumentParser()
- parser.add_argument('--nameserver', '-ns', default=None,
+ parser.add_argument('--nameserver', '-ns', default='localhost',
help="IP address or hostname of reference NS, default localhosts resolver")
parser.add_argument('--timeout', '-t', type=float, default=5, help="timeout in seconds, default 5")
parser.add_argument('--nochecksoa', action='store_true', default=False)
@@ -213,7 +213,7 @@ def main():
elif not soa_result:
print 'SOA check for zone %s failed.\n' % item['domain']
elif soa_result == 'no match':
- print 'SOA did not match:'
+ print 'SOA did not match for zone %s:' % item['domain']
print_soa(item['domain'], resolvers)
print ''
if not args.nocheckauth:
@@ -232,4 +232,4 @@ def main():
return 0
if __name__ == '__main__':
- main() \ No newline at end of file
+ main()