5.2.1.3. get_ip_for_hostname¶
-
mfutil.net.
get_ip_for_hostname
(hostname, ignore_hostnames_list=['AUTO'])[source]¶ Get the IP of a given hostname.
Parameters: - hostname (string) – hostname to find.
- ignore_hostnames_list (list of strings) – special hostname values which won’t be lookup ip (if the given hostname is in this list, this function will return the given hostname without any modification).
Returns: (string) IP of the given hostname (or None if we can’t find it).