use search list with basedomain from settings

This commit is contained in:
Thomas Waldmann 2013-09-30 01:58:16 +02:00
parent 1fc66a3b79
commit 71e937c0da

View File

@ -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 # we do not configure it from resolv.conf, but patch in the values we
# want into the documented attributes: # want into the documented attributes:
resolver.nameservers = [nameserver, ] 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) answer = resolver.query(qname, rdtype)
return str(list(answer)[0]) return str(list(answer)[0])