Module netutils :: Class FallbackResolver
[hide private]

Class FallbackResolver

source code

BaseDnsResolver --+
                  |
                 FallbackResolver

Implementation of DNS resolving using fallback approach against different resolvers

Instance Methods [hide private]
 
__init__(self, resolvers) source code
 
resolveHostnamesByIp(self, ip)
Call for each resolver resolveHostnamesByIp and if it was failed with ResolveException, call next resolver
source code
 
resolveIpsByHostname(self, hostname)
Call for each resolver method and if it was failed with ResolveException, call next resolver
source code
Class Variables [hide private]
Method Details [hide private]

resolveHostnamesByIp(self, ip)

source code 

Call for each resolver resolveHostnamesByIp and if it was failed with ResolveException, call next resolver

Raises:
Overrides: BaseDnsResolver.resolveHostnamesByIp

resolveIpsByHostname(self, hostname)

source code 

Call for each resolver method and if it was failed with ResolveException, call next resolver

Raises:
Overrides: BaseDnsResolver.resolveIpsByHostname