wm: doc

ref: cf442e829d634703c3a3ec3a81ac9cbc4a7d03ef
dir: /ndb.ms/

View raw version
Note the differences in how the addresses must  be formatted:

.P1
; ndb/csquery
> tcp!ircnow.org!443
/net/tcp/clone 198.251.82.194!443

; ndb/dnsquery
> ircnow.org ipv6
ircnow.org ipv6	2605:6404:2d3::
.P2

.PP
Note: All addresses in plan 9 are IPv6 addresses. So an ipmask=/123 for an IPv4 address is actually an IPv4 /27 subnet.

Note: when you lookup a name using whatever nameserver is defined in /lib/ndb/local, if it's not found, ndb will recursively search the root nameservers to find the entry
Most resolvers will normally give up, but ndb is really persistent.

To run a caching DNS server, modify /cfg/$sysname/termrc or /cfg/$sysname/cpurc (whichever is appropriate) to include the following: 
ndb/dns -rs 
Be aware that there are no access controls to this caching server. This makes the server vulnerable to being used in a DDoS amplification attack using DNS. You will need to firewall off access.