diff options
author | Stanislav Laznicka <slaznick@redhat.com> | 2015-11-25 16:38:00 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2015-12-02 17:26:56 +0100 |
commit | 498471e4aed1367b72cd74d15811d0584a6ee268 (patch) | |
tree | 93930a1d714eb7e92f6b28f1a7b9436bbf046767 /ipapython/ipautil.py | |
parent | bbbe411f357b7fbad533b5211a90bb0558b1abbe (diff) | |
download | freeipa-498471e4aed1367b72cd74d15811d0584a6ee268.tar.gz freeipa-498471e4aed1367b72cd74d15811d0584a6ee268.tar.xz freeipa-498471e4aed1367b72cd74d15811d0584a6ee268.zip |
Removed duplicate domain name validating function
Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipapython/ipautil.py')
-rw-r--r-- | ipapython/ipautil.py | 12 |
1 files changed, 0 insertions, 12 deletions
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): """ |