Skip to content
Snippets Groups Projects
Commit 612d6b9a authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Implemented filtering of exported subdomains

parent 1cc9c133
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,8 @@ def header(tree, domain, origin=None):
pass
delegation = []
for ns in tree._host_._interface_._nameserver_:
if ns.external[0] != 'yes':
continue
subdomain = ns.domain[0].split('.')
if subdomain[1:] == domain.split('.'):
delegation.append( '%-16sIN NS %s' %
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment