View Source Inet (inet v0.1.0)
Documentation for Inet
.
Summary
Functions
A function that takes a ip address and returns a list of dns.
A convenience function that calls :inet.gethostbyaddr
.
A convenience function that calls :inet.gethostbyname
.
A function that takes a hostname and returns a list of IP addresses. The IP address in the result may vary as it depends on the network and DNS resolution.
Functions
A function that takes a ip address and returns a list of dns.
Examples
iex> Inet.get_dns_list("172.217.27.46")
A convenience function that calls :inet.gethostbyaddr
.
Examples
iex> Inet.get_host_by_addr("172.217.27.46")
A convenience function that calls :inet.gethostbyname
.
Examples
iex> Inet.get_host_by_name("google.com")
A function that takes a hostname and returns a list of IP addresses. The IP address in the result may vary as it depends on the network and DNS resolution.
Examples
iex> Inet.get_ip_address_list("google.com")