[freebsd][network] get_hostname method