- Timestamp:
- Oct 28, 2007, 11:16:12 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns/dnsserver.py
r181 r226 31 31 if cls == dns.IN and type in (dns.A, dns.ALL_RECORDS): 32 32 host = name[:-len(self.domain)-1] 33 value = sipb_xen_database. NIC.get_by(hostname=host)34 if value is None :33 value = sipb_xen_database.Machine.get_by(name=host) 34 if value is None or not value.nics: 35 35 return defer.fail(failure.Failure(dns.AuthoritativeDomainError(name))) 36 ip = value. ip36 ip = value.nics[0].ip 37 37 if ip is None: #Deactivated? 38 38 return defer.fail(failure.Failure(dns.AuthoritativeDomainError(name)))
Note: See TracChangeset
for help on using the changeset viewer.