View Source gc_discover_dns (gen_cluster v0.3.0)
Utility functions for working with DNS related types and options.
Summary
Types
A doman name. A string with no adjacent dots. Defined until inet_res:dns_name() is exported.
Whether the host part of a node name is a hostname, IPv4 or IPv6 address
Type of IP record to query DNS for, a
or aaaa
Whether to query for a
or aaaa
records
Functions
Returns a
when use_ipv6
is false
and aaaa
when it is true
Types
-type dns_name() :: string().
A doman name. A string with no adjacent dots. Defined until inet_res:dns_name() is exported.
-type host_type() :: ip | hostname.
Whether the host part of a node name is a hostname, IPv4 or IPv6 address
-type ip_record_type() :: a | aaaa.
Type of IP record to query DNS for, a
or aaaa
-type use_ipv6() :: boolean().
Whether to query for a
or aaaa
records
Functions
-spec ip_record_type(use_ipv6()) -> ip_record_type().
Returns a
when use_ipv6
is false
and aaaa
when it is true