# determine which DNS resolution library is available
HAVE_DNSPYTHON=False
HAVE_PYDNS=False
HAS_DNSPYTHON=False
HAS_PYDNS=False
try:
importdns.resolver# http://dnspython.org/
HAVE_DNSPYTHON=True
HAS_DNSPYTHON=True
exceptImportError:
try:
importDNS# http://pydns.sf.net/
HAVE_PYDNS=True
HAS_PYDNS=True
exceptImportError:
gajim.log.debug("Could not load one of the supported DNS libraries (dnspython or pydns). SRV records will not be queried and you may need to set custom hostname/port for some servers to be accessible.")