From: Evan Broder Date: Sat, 31 May 2008 05:36:44 +0000 (-0400) Subject: Return an NS record in the authority section instead of SOA X-Git-Tag: sipb-xen-dns/1.02~9 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-dns.git/commitdiff_plain/2c0da3671a070000abc7be2906f2d32facf6524e?hp=7f47cf9484bfa3e5c01ca40f4887bd62fbdf0fa0 Return an NS record in the authority section instead of SOA svn path=/trunk/packages/sipb-xen-dns/; revision=541 --- diff --git a/code/dnsserver.py b/code/dnsserver.py index 3d6c296..08cf979 100755 --- a/code/dnsserver.py +++ b/code/dnsserver.py @@ -68,8 +68,9 @@ class DatabaseAuthority(common.ResolverBase): results.append(dns.RRHeader(name, dns.A, dns.IN, ttl, record, auth=True)) authority = [] - authority.append(dns.RRHeader(domain, dns.SOA, dns.IN, 3600, - self.soa, auth=True)) + auth_record = dns.Record_NS(name='ns1.xvm.mit.edu', ttl=3600) + authority.append(dns.RRHeader(domain, dns.NS, dns.IN, + 3600, auth_record, auth=True)) return defer.succeed((results, authority, [])) #Doesn't exist return defer.fail(failure.Failure(dns.AuthoritativeDomainError(name)))