net_adm
net_adm
Module
net_adm
Module summary
Various Erlang Net Administration Routines
Description
This module contains various network utility functions.
Exports
dns_hostname(Host) -> {ok, Name} | {error, Host}
Types:
Host = atom() | string() Name = string()
Returns the official name of Host
, or {error, Host}
if no such name is found. See also inet(3)
.
host_file() -> Hosts | {error, Reason}
Types:
Hosts = [Host :: atom()] Reason = file:posix() | badarg | terminated | system_limit | {Line :: integer(), Mod :: module(), Term :: term()}
Reads the .ho