From 498471e4aed1367b72cd74d15811d0584a6ee268 Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka Date: Wed, 25 Nov 2015 16:38:00 +0100 Subject: Removed duplicate domain name validating function Reviewed-By: Martin Basti --- ipapython/ipautil.py | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'ipapython') diff --git a/ipapython/ipautil.py b/ipapython/ipautil.py index 4551ea5c4..104f9d180 100644 --- a/ipapython/ipautil.py +++ b/ipapython/ipautil.py @@ -911,18 +911,6 @@ def bind_port_responder(port, socket_type=socket.SOCK_STREAM, socket_timeout=Non if s is None and last_socket_error is not None: raise last_socket_error # pylint: disable=E0702 -def is_host_resolvable(fqdn): - if not isinstance(fqdn, DNSName): - fqdn = DNSName(fqdn) - for rdtype in (rdatatype.A, rdatatype.AAAA): - try: - resolver.query(fqdn.make_absolute(), rdtype) - except DNSException: - continue - else: - return True - - return False def host_exists(host): """ -- cgit