Module zut.net

Resolve DNS with a timeout, check port status, determine proxy, etc.

Functions

check_tcp_port(target, port, *[, timeout, ...])

Return a list of hosts that have the given TCP port open.

fix_no_proxy_env_localhost(*hosts)

Ensure NO_PROXY environment variable contains localhost and 127.0.0.1 (and optional additional hosts given as arguments) in case HTTP_PROXY or HTTPS_PROXY are given

get_default_gateway_ip([iface])

get_host_ip()

get_proxy_url(*[, use_wpad, wpad_timeout])

resolve_host(host, *[, timeout, ip_version])

Make a DNS resolution with a timeout.