diff options
Diffstat (limited to 'filter_plugins/dns.py')
-rw-r--r-- | filter_plugins/dns.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/filter_plugins/dns.py b/filter_plugins/dns.py index 89f2159..7f1da54 100644 --- a/filter_plugins/dns.py +++ b/filter_plugins/dns.py @@ -9,7 +9,6 @@ The templating is done on the local/control machine! import os import datetime -import random import shlex import subprocess @@ -49,15 +48,7 @@ def next_serial(fqdn): if cmd_path is None: raise Exception("Cannot find %s" % cmd) - def query_nameservers(fqdn, ns=None): - return [line[0] for line in run_query(cmd_path, "NS", fqdn, ns)] - - # Get a registry nameserver. - reg_ns = random.choice(query_nameservers(".".join(fqdn.split(".")[1:]))) - - nss = query_nameservers(fqdn, reg_ns) - random.shuffle(nss) - + nss = [line[0] for line in run_query(cmd_path, "NS", fqdn)] current_serial = None for ns in nss: try: |