- Timestamp:
- Jun 23, 2008, 2:15:07 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-dns/code/dnsserver.py
r643 r645 27 27 expire=3600000, minimum=21600, ttl=3600) 28 28 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 29 33 30 34 def _lookup(self, name, cls, type, timeout = None): … … 56 60 results = [] 57 61 authority = [] 58 additional = [ ]62 additional = [self.ns1] 59 63 authority.append(dns.RRHeader(domain, dns.NS, dns.IN, 60 64 3600, self.ns, auth=True)) … … 80 84 ttl, self.ns, auth=True)) 81 85 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))85 86 elif type == dns.SOA: 86 87 results.append(dns.RRHeader(domain, dns.SOA, dns.IN,
Note: See TracChangeset
for help on using the changeset viewer.