The logic to determine whether a host is a domain is pretty crude, and doesn't consider domains like .co.uk (see the test_is_domain failure)
Maybe we could use the tldextract module or import some of the code: https://github.com/john-kurkowski/tldextract
The logic to determine whether a host is a domain is pretty crude, and doesn't consider domains like .co.uk (see the
test_is_domain
failure) Maybe we could use the tldextract module or import some of the code: https://github.com/john-kurkowski/tldextract