Commit 9de6882c authored by Valentin Samir's avatar Valentin Samir

Fix _get_ds_from_parents: parent domain name should ends with a '.'

This avoid confusion with local domain
parent 90d95c2a
......@@ -331,9 +331,7 @@ class Zone(object):
def _get_ds_from_parents(self):
parent = '.'.join('.')[1:])
if not parent:
parent = '.'
parent = '.'.join('.')[1:]) + '.'
nameservers = {
ns.to_text(): [ip.to_text() for ip in dns.resolver.query(ns.to_text())]
for ns in dns.resolver.query(parent, 'NS')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment