From 2402025982aa44c91e452fd792abdfc880461944 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 4 Jan 2023 19:25:05 +0000 Subject: ndb/dns: allow specifying local ip addresses for serving dns Allow specifying the local IP addresses that the UDP dns server will listen on when the -s flag is given. --- sys/man/8/ndb | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'sys/man') diff --git a/sys/man/8/ndb b/sys/man/8/ndb index 9ec933918..083aa090d 100644 --- a/sys/man/8/ndb +++ b/sys/man/8/ndb @@ -57,7 +57,7 @@ query, ipquery, mkhash, mkdb, mkhosts, cs, csquery, dns, dnstcp, dnsquery, dnsde .br .B ndb/dns [ -.B -norRs +.B -norR ] [ .B -a .I maxage @@ -73,6 +73,11 @@ query, ipquery, mkhash, mkdb, mkhosts, cs, csquery, dns, dnstcp, dnsquery, dnsde ] [ .B -z .I program +] [ +.B -s +[ +.I addrs... +] ] .br .B ndb/dnstcp @@ -390,7 +395,13 @@ ignore the `recursive' bit on incoming requests. Do not complete lookups on behalf of remote systems. .TP .B -s -also answer domain requests sent to UDP port 53. +also answer domain requests sent to IP +.I addrs +on UDP port 53. +If no IP +.I addrs +are given, listen on any interface on network mount point +.IR netmtpt . .TP .B -x specifies the mount point of the -- cgit v1.2.3