5.2.1.2. get_full_hostname¶
-
mfutil.net.
get_full_hostname
(use_resolv_conf=True, resolv_conf_file='/etc/resolv.conf')[source]¶ Return the “full” hostname of the server.
“full” hostname means “with network domain” appended.
- Parameters
use_resolv_conf (boolean) – if set to True, we use the resolv.conf file to find the domain name.
resolv_conf_file (string) – full path of the resolv.conf file (useful for unit testing).
- Returns
the “full” hostname of the server.
- Return type
string