Dedicated DNS Server
By default, iroh will look up the endpoint on a public shared instance of the DNS discovery server. If you’d like to run your own private DNS discovery server for more guaranteed privacy and uptime guarantees, you can configure iroh to use it. TODO: rust code for custom dns serverImportant notes
- DNS discovery is the default discovery mechanism in iroh, so you don’t need to do anything special to enable it.
- DNS discovery only publishes the home relay of an endpoint, not its direct addresses.
- DNS discovery is opt-out, so if you don’t want your endpoint to be
discoverable via DNS, you can disable it by using the
Endpoint::empty_buildermethod instead ofEndpoint::builder. - Two nodes must connect to the same DNS discovery server to find each other using DNS discovery.