diff --git a/iroh-dns-server/config.dev.toml b/iroh-dns-server/config.dev.toml index ada19a5..2b96ede 100644 --- a/iroh-dns-server/config.dev.toml +++ b/iroh-dns-server/config.dev.toml @@ -8,7 +8,7 @@ cert_mode = "self_signed" letsencrypt_prod = false [dns] -port = 5353 +port = 5300 default_soa = "dns1.irohdns.example hostmaster.irohdns.example 0 10800 3600 604800 3600" default_ttl = 900 origin = "irohdns.example." diff --git a/iroh-dns-server/examples/publish.rs b/iroh-dns-server/examples/publish.rs index b8cf08f..ccf76d0 100644 --- a/iroh-dns-server/examples/publish.rs +++ b/iroh-dns-server/examples/publish.rs @@ -85,7 +85,7 @@ async fn main() -> Result<()> { Env::Dev => { println!("cargo run --example resolve -- --env dev node {}", node_id); println!( - "dig @localhost -p 5353 {} TXT", + "dig @localhost -p 5300 {} TXT", fmt_domain(&node_id, EXAMPLE_ORIGIN) ) } diff --git a/iroh-dns-server/examples/resolve.rs b/iroh-dns-server/examples/resolve.rs index e50c9df..7e23fec 100644 --- a/iroh-dns-server/examples/resolve.rs +++ b/iroh-dns-server/examples/resolve.rs @@ -11,15 +11,15 @@ use iroh_net::dns::node_info::lookup_by_domain; use iroh_net::dns::node_info::lookup_by_id; use iroh_net::NodeId; -const LOCALHOST_DNS: &str = "127.0.0.1:5353"; +const LOCALHOST_DNS: &str = "127.0.0.1:5300"; const EXAMPLE_ORIGIN: &str = "irohdns.example"; #[derive(ValueEnum, Clone, Debug, Default)] pub enum Env { - /// Use cloudflare and the irohdns test server at testdns.iroh.link + /// Use the system's nameservers with origin testdns.iroh.link #[default] Default, - /// Use a localhost domain server listening on port 5353 + /// Use a localhost DNS server listening on port 5300 Dev, } diff --git a/iroh-dns-server/src/config.rs b/iroh-dns-server/src/config.rs index 191a438..62b88ec 100644 --- a/iroh-dns-server/src/config.rs +++ b/iroh-dns-server/src/config.rs @@ -78,7 +78,7 @@ impl Default for Config { "irohdns.example hostmaster.irohdns.example 0 10800 3600 604800 3600" .to_string(), origin: "irohdns.example.".to_string(), - port: 5353, + port: 5300, default_ttl: 900, additional_origins: vec![".".to_string()], ipv4_addr: Some(Ipv4Addr::LOCALHOST), diff --git a/iroh-dns-server/src/dns.rs b/iroh-dns-server/src/dns.rs index 38d1b8e..efc1097 100644 --- a/iroh-dns-server/src/dns.rs +++ b/iroh-dns-server/src/dns.rs @@ -82,6 +82,7 @@ pub async fn serve( TcpListener::bind(sock_addr).await?, TCP_TIMEOUT, // Duration::from_millis(settings.timeout_ms), ); + tracing::info!("DNS server listening on {}", sock_addr); tokio::select! { _ = server.block_until_done() => {