Commit 612d6b9a authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Implemented filtering of exported subdomains

parent 1cc9c133
......@@ -129,6 +129,8 @@ def header(tree, domain, origin=None):
delegation = []
for ns in tree._host_._interface_._nameserver_:
if ns.external[0] != 'yes':
subdomain = ns.domain[0].split('.')
if subdomain[1:] == domain.split('.'):
delegation.append( '%-16sIN NS %s' %
Supports Markdown
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