View Source MdnsLite.DNSBridge (mdns_lite v0.8.11)

DNS server that responds to mDNS queries

This is a simple DNS server that can be used to resolve mDNS queries so that the rest of Erlang and Elixir can seamlessly use mDNS. To use this, you must enable the :dns_bridge_enabled option and then make the first DNS server be this server's IP address and port.

This DNS server can either return an error or recursively look up a non-mDNS record depending on how it's configured. Erlang's DNS resolver currently has an issue with the error strategy so it can't be used.

Configure this using the following application environment options:

  • :dns_bridge_enabled - set to true to enable the bridge
  • :dns_bridge_ip - IP address in tuple form for server (defaults to {127, 0, 0, 53})
  • :dns_bridge_port - UDP port for server (defaults to 53)
  • :dns_bridge_recursive - set to true to recursively look up non-mDNS queries

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.