From 71e937c0da2df0a7f5ddd25958e04830fe5c85f2 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Mon, 30 Sep 2013 01:58:16 +0200 Subject: [PATCH] use search list with basedomain from settings --- nsupdate/main/dnstools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsupdate/main/dnstools.py b/nsupdate/main/dnstools.py index 0249ddc..7cf4a36 100644 --- a/nsupdate/main/dnstools.py +++ b/nsupdate/main/dnstools.py @@ -123,7 +123,7 @@ def query_ns(qname, rdtype, origin=None): # we do not configure it from resolv.conf, but patch in the values we # want into the documented attributes: resolver.nameservers = [nameserver, ] - resolver.search = [] # was: [dns.name.from_text(settings.BASEDOMAIN), ] + resolver.search = [dns.name.from_text(settings.BASEDOMAIN), ] answer = resolver.query(qname, rdtype) return str(list(answer)[0])