da119a6 Turn verify_host_resolvable() into a wrapper around ipapython.dnsutil

3 files Authored by pspacek 7 years ago, Committed by mbasti 7 years ago,
    Turn verify_host_resolvable() into a wrapper around ipapython.dnsutil
    
    The code was duplicate and less generic anyway.
    As a side-effect I had to re-wrap dns.exception.DNSException into a
    PublicError so it can be displayed to the user.
    
    DNSError is now a super class for other DNS-related errors. Errors from
    DNS resolver are re-raised as DNSResolverError.
    
    https://fedorahosted.org/freeipa/ticket/5710
    
    Reviewed-By: Martin Basti <mbasti@redhat.com>
    
        
file modified
+64 -34
file modified
+7 -25