View Source Toolshed.Net (toolshed v0.2.26)
Network related helpers
Link to this section Summary
Functions
Return the hostname
Print out the network interfaces and their addresses.
Lookup the specified hostname in the DNS and print out the addresses.
Link to this section Functions
Specs
hostname() :: String.t()
Return the hostname
Examples
iex> hostname
"nerves-1234"
Specs
ifconfig() :: :"do not show this result in output"
Print out the network interfaces and their addresses.
Specs
nslookup(String.t()) :: :"do not show this result in output"
Lookup the specified hostname in the DNS and print out the addresses.
Examples
iex> nslookup "google.com"
Name: google.com
Address: 172.217.7.238
Address: 2607:f8b0:4004:804::200e