MdnsLite.set_host
You're seeing just the function
set_host
, go back to MdnsLite module for more information.
Set the list of host names
host
can have the value of :hostname
in which case the value will be
replaced with the value of :inet.gethostname()
, otherwise you can provide a
string value. You can specify an alias hostname in which case host
will be
["hostname", "alias-example"]
. The second value must be a string. When you
use an alias, an "A" query can be made to alias-example.local
as well as
to hostname.local
. This can also be configured at runtime via
MdnsLite.set_host/1
:
iex> MdnsLite.set_host([:hostname, "nerves"])
:ok