linkcheck.network.iputil

Ip number related utility functions.

Functions

is_valid_ip(ip)

Return True if given ip is a valid IPv4 or IPv6 address.

resolve_host(host)

Return list of ip numbers for given host.

linkcheck.network.iputil.is_obfuscated_ip(string, pos=0, endpos=9223372036854775807)

Matches zero or more characters at the beginning of the string.

linkcheck.network.iputil.is_valid_ip(ip)[source]

Return True if given ip is a valid IPv4 or IPv6 address.

linkcheck.network.iputil.resolve_host(host)[source]

Return list of ip numbers for given host.

Parameters:

host – hostname or IP address