Changeset 2201 for trunk/packages/invirt-dns
- Timestamp:
- Feb 27, 2009, 2:56:54 AM (16 years ago)
- Location:
- trunk/packages/invirt-dns
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/invirt-dns/debian/changelog
r2197 r2201 1 1 invirt-dns (0.0.10) unstable; urgency=low 2 2 3 * Add support for resolving PTR records in the in-addr.arpa zone 3 * Add support for resolving PTR records in the in-addr.arpa zone. 4 * If we're not authoritative for an in-addr.arpa zone, generate a 5 phantom SOA record for the exact request that came in. 4 6 5 -- Quentin Smith <quentin@mit.edu> Fri, 27 Feb 2009 02: 39:25-05007 -- Quentin Smith <quentin@mit.edu> Fri, 27 Feb 2009 02:56:31 -0500 6 8 7 9 invirt-dns (0.0.9) unstable; urgency=low -
trunk/packages/invirt-dns/invirt-dns
r2197 r2201 71 71 best_domain = domain 72 72 if best_domain == '': 73 return defer.fail(failure.Failure(dns.DomainError(name))) 73 if name.endswith('.in-addr.arpa'): 74 best_domain = name # Act authoritative for the IP address for reverse resolution requests 75 else: 76 return defer.fail(failure.Failure(dns.DomainError(name))) 74 77 domain = best_domain 75 78 results = [] … … 81 84 if cls == dns.IN: 82 85 host = name[:-len(domain)-1] 83 if not host : # Request for the domain itself.86 if not host and type != dns.PTR: # Request for the domain itself. 84 87 if type in (dns.A, dns.ALL_RECORDS): 85 88 record = dns.Record_A(config.dns.nameservers[0].ip, ttl)
Note: See TracChangeset
for help on using the changeset viewer.