Ticket #2276: common.py.patch

File common.py.patch, 0.7 KB (added by agatonsax, 7 years ago)

Patch to names/common.oy

  • common.py

     
    8888    def lookupZone(self, name, timeout = None): 
    8989        return self._lookup(name, dns.IN, dns.AXFR, timeout) 
    9090 
     91    def lookupNamingAuthorityPointer(self,name,timeout=None): 
     92        return self._lookup(name, dns.IN, dns.NAPTR, timeout) 
     93 
    9194    def lookupAllRecords(self, name, timeout = None): 
    9295        return self._lookup(name, dns.IN, dns.ALL_RECORDS, timeout) 
    9396 
     
    152155    dns.RP:    'lookupResponsibility', 
    153156    dns.AFSDB: 'lookupAFSDatabase', 
    154157    dns.SRV:   'lookupService', 
    155  
     158    dns.NAPTR: 'lookupNamingAuthorityPointer', 
    156159    dns.AXFR:         'lookupZone', 
    157160    dns.ALL_RECORDS:  'lookupAllRecords', 
    158161}