Changeset 645 for trunk/packages


Ignore:
Timestamp:
Jun 23, 2008, 2:15:07 PM (16 years ago)
Author:
broder
Message:

Always return an additional section

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-dns/code/dnsserver.py

    r643 r645  
    2727                                  expire=3600000, minimum=21600, ttl=3600)
    2828        self.ns = dns.Record_NS(name='ns1.xvm.mit.edu', ttl=3600)
     29        record = dns.Record_A(address='18.181.0.62', ttl=3600)
     30        self.ns1 = dns.RRHeader('ns1.xvm.mit.edu', dns.A, dns.IN,
     31                                3600, record, auth=True)
     32
    2933   
    3034    def _lookup(self, name, cls, type, timeout = None):
     
    5660        results = []
    5761        authority = []
    58         additional = []
     62        additional = [self.ns1]
    5963        authority.append(dns.RRHeader(domain, dns.NS, dns.IN,
    6064                                      3600, self.ns, auth=True))
     
    8084                                            ttl, self.ns, auth=True))
    8185                authority = []
    82                 record = dns.Record_A(address='18.181.0.62', ttl=ttl)
    83                 additional.append(dns.RRHeader('ns1.xvm.mit.edu', dns.A, dns.IN,
    84                                                ttl, record, auth=True))
    8586            elif type == dns.SOA:
    8687                results.append(dns.RRHeader(domain, dns.SOA, dns.IN,
Note: See TracChangeset for help on using the changeset viewer.