X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dns.git/blobdiff_plain/863a5a043fc4f43fd5c3c63cf1cda94d453a7351..f0fcc10d816f9bd3f04b1c51f09d9a60ecaebe77:/invirt-dns?ds=sidebyside diff --git a/invirt-dns b/invirt-dns index ed0ab01..272fd6c 100755 --- a/invirt-dns +++ b/invirt-dns @@ -208,17 +208,6 @@ class DelegatingQuotingBindAuthority(authority.BindAuthority): name = name[name.find('.') + 1 :] deferredResult = authority.BindAuthority._lookup(self, name, cls, dns.NS, timeout) - # If we found somewhere to delegate the query to, our _lookup() - # for the NS record resulted in it being in the 'results' section. - # We need to instead return that information in the 'authority' - # section to delegate, and return an empty 'results' section - # (because we didn't find the name we were asked about). We - # leave the 'additional' section as we received it because it - # may contain A records for the DNS server we're delegating to. - if maybeDelegate and not isinstance(deferredResult.result, - failure.Failure): - (nsResults, nsAuthority, nsAdditional) = deferredResult.result - deferredResult = defer.succeed(([], nsResults, nsAdditional)) return deferredResult class TypeLenientResolverChain(resolve.ResolverChain):