Add more DNS types. [rsc] --rw-rw-r-- M 191333 glenda sys 27986 Sep 22 08:37 sys/src/cmd/ndb/dn.c /n/sourcesdump/2005/0922/plan9/sys/src/cmd/ndb/dn.c:42,53 - /n/sourcesdump/2005/0923/plan9/sys/src/cmd/ndb/dn.c:42,89 [Tmx] "mx", [Ttxt] "txt", [Trp] "rp", - [Tkey] "key", - [Tcert] "cert", + [Tafsdb] "afsdb", + [Tx25] "x.25", + [Tisdn] "isdn", + [Trt] "rt", + [Tnsap] "nsap", + [Tnsapptr] "nsap-ptr", [Tsig] "sig", + [Tkey] "key", + [Tpx] "px", + [Tgpos] "gpos", [Taaaa] "ipv6", + [Tloc] "loc", + [Tnxt] "nxt", + [Teid] "eid", + [Tnimloc] "nimrod", + [Tsrv] "srv", + [Tatma] "atma", + [Tnaptr] "naptr", + [Tkx] "kx", + [Tcert] "cert", + [Ta6] "a6", + [Tdname] "dname", + [Tsink] "sink", + [Topt] "opt", + [Tapl] "apl", + [Tds] "ds", + [Tsshfp] "sshfp", + [Tipseckey] "ipseckey", + [Trrsig] "rrsig", + [Tnsec] "nsec", + [Tdnskey] "dnskey", + [Tspf] "spf", + [Tuinfo] "uinfo", + [Tuid] "uid", + [Tgid] "gid", + [Tunspec] "unspec", + [Ttkey] "tkey", + [Ttsig] "tsig", [Tixfr] "ixfr", [Taxfr] "axfr", + [Tmailb] "mailb", + [Tmaila] "maila", [Tall] "all", 0, }; /n/sourcesdump/2005/0922/plan9/sys/src/cmd/ndb/dn.c:61,66 - /n/sourcesdump/2005/0923/plan9/sys/src/cmd/ndb/dn.c:97,114 [Rname] "bad name", [Runimplimented] "unimplemented", [Rrefused] "we don't like you", + [Ryxdomain] "name should not exist", + [Ryxrrset] "rr set should not exist", + [Rnxrrset] "rr set should exist", + [Rnotauth] "not authorative", + [Rnotzone] "not in zone", + [Rbadvers] "bad opt version", + /* [Rbadsig] "bad signature", */ + [Rbadkey] "bad key", + [Rbadtime] "bad signature time", + [Rbadmode] "bad mode", + [Rbadname] "duplicate key name", + [Rbadalg] "bad algorithm", }; /* names of op codes */ /n/sourcesdump/2005/0922/plan9/sys/src/cmd/ndb/dn.c:67,74 - /n/sourcesdump/2005/0923/plan9/sys/src/cmd/ndb/dn.c:115,123 char *opname[] = { [Oquery] "query", - [Oinverse] "inverse", + [Oinverse] "inverse query (retired)", [Ostatus] "status", + [Oupdate] "update", }; Lock dnlock; [rsc] --rw-rw-r-- M 191333 glenda sys 10141 Sep 22 08:37 sys/src/cmd/ndb/dns.h /n/sourcesdump/2005/0922/plan9/sys/src/cmd/ndb/dns.h:2,34 - /n/sourcesdump/2005/0923/plan9/sys/src/cmd/ndb/dns.h:2,70 enum { - /* RR types */ - Ta= 1, - Tns= 2, - Tmd= 3, - Tmf= 4, - Tcname= 5, - Tsoa= 6, - Tmb= 7, - Tmg= 8, - Tmr= 9, - Tnull= 10, - Twks= 11, - Tptr= 12, - Thinfo= 13, - Tminfo= 14, - Tmx= 15, - Ttxt= 16, - Trp= 17, - Tsig= 24, - Tkey= 25, - Taaaa= 28, - Tcert= 37, + /* RR types; see: http://www.iana.org/assignments/dns-parameters */ + Ta= 1, + Tns= 2, + Tmd= 3, + Tmf= 4, + Tcname= 5, + Tsoa= 6, + Tmb= 7, + Tmg= 8, + Tmr= 9, + Tnull= 10, + Twks= 11, + Tptr= 12, + Thinfo= 13, + Tminfo= 14, + Tmx= 15, + Ttxt= 16, + Trp= 17, + Tafsdb= 18, + Tx25= 19, + Tisdn= 20, + Trt= 21, + Tnsap= 22, + Tnsapptr= 23, + Tsig= 24, + Tkey= 25, + Tpx= 26, + Tgpos= 27, + Taaaa= 28, + Tloc= 29, + Tnxt= 30, + Teid= 31, + Tnimloc= 32, + Tsrv= 33, + Tatma= 34, + Tnaptr= 35, + Tkx= 36, + Tcert= 37, + Ta6= 38, + Tdname= 39, + Tsink= 40, + Topt= 41, + Tapl= 42, + Tds= 43, + Tsshfp= 44, + Tipseckey= 45, + Trrsig= 46, + Tnsec= 47, + Tdnskey= 48, + Tspf= 99, + Tuinfo= 100, + Tuid= 101, + Tgid= 102, + Tunspec= 103, + /* query types (all RR types are also queries) */ + Ttkey= 249, /* transaction key */ + Ttsig= 250, /* transaction signature */ Tixfr= 251, /* incremental zone transfer */ Taxfr= 252, /* zone transfer */ Tmailb= 253, /* { Tmb, Tmg, Tmr } */ + Tmaila= 254, /* obsolete */ Tall= 255, /* all records */ /* classes */ /n/sourcesdump/2005/0922/plan9/sys/src/cmd/ndb/dns.h:43,51 - /n/sourcesdump/2005/0923/plan9/sys/src/cmd/ndb/dns.h:79,88 /* opcodes */ Oquery= 0<<11, /* normal query */ - Oinverse= 1<<11, /* inverse query */ + Oinverse= 1<<11, /* inverse query (retired) */ Ostatus= 2<<11, /* status request */ Onotify= 4<<11, /* notify slaves of updates */ + Oupdate= 5<<11, Omask= 0xf<<11, /* mask for opcode */ /* response codes */ /n/sourcesdump/2005/0922/plan9/sys/src/cmd/ndb/dns.h:55,62 - /n/sourcesdump/2005/0923/plan9/sys/src/cmd/ndb/dns.h:92,111 Rname= 3, /* bad name */ Runimplimented= 4, /* unimplemented */ Rrefused= 5, /* we don't like you */ - Rmask= 0xf, /* mask for response */ - Rtimeout= 0x10, /* timeout sending (for internal use only) */ + Ryxdomain= 6, /* name exists when it should not */ + Ryxrrset= 7, /* rr set exists when it should not */ + Rnxrrset= 8, /* rr set that should exist does not */ + Rnotauth= 9, /* not authoritative */ + Rnotzone= 10, /* name not in zone */ + Rbadvers= 16, /* bad opt version */ + /* Rbadsig= 16, */ /* also tsig signature failure */ + Rbadkey= 17, /* key not recognized */ + Rbadtime= 18, /* signature out of time window */ + Rbadmode= 19, /* bad tkey mode */ + Rbadname= 20, /* duplicate key name */ + Rbadalg= 21, /* algorithm not supported */ + Rmask= 0x1f, /* mask for response */ + Rtimeout= 0x20, /* timeout sending (for internal use only) */ /* bits in flag word (other than opcode and response) */ Fresp= 1<<15, /* message is a response */ [sys] --rwxrwxr-x M 191333 glenda sys 245101 Sep 22 23:10 386/bin/ndb/dns /sys/src/cmd/ndb/dn.c:dnage /sys/src/cmd/ndb/dn.c:dnageall /sys/src/cmd/ndb/dn.c:dncheck /sys/src/cmd/ndb/dn.c:dndump /sys/src/cmd/ndb/dn.c:dnlookup /sys/src/cmd/ndb/dn.c:dnptr /sys/src/cmd/ndb/dn.c:getactivity /sys/src/cmd/ndb/dn.c:putactivity /sys/src/cmd/ndb/dn.c:rrattach1 /sys/src/cmd/ndb/dn.c:rravfmt /sys/src/cmd/ndb/dn.c:rrfmt /sys/src/cmd/ndb/dn.c:rrfree /sys/src/cmd/ndb/dn.c:rrlookup /sys/src/cmd/ndb/dn.c:rrname /sys/src/cmd/ndb/dn.c:rrtype /sys/src/cmd/ndb/dn.c:sencodefmt /sys/src/cmd/ndb/dn.c:warning /sys/src/cmd/ndb/dnresolve.c:netquery1 /sys/src/cmd/ndb/dnresolve.c:serveraddrs [sys] --rwxrwxr-x M 191333 glenda sys 219717 Sep 22 23:10 386/bin/ndb/dnsdebug /sys/src/cmd/ndb/dn.c:dnage /sys/src/cmd/ndb/dn.c:dnageall /sys/src/cmd/ndb/dn.c:dncheck /sys/src/cmd/ndb/dn.c:dndump /sys/src/cmd/ndb/dn.c:dnlookup /sys/src/cmd/ndb/dn.c:dnptr /sys/src/cmd/ndb/dn.c:getactivity /sys/src/cmd/ndb/dn.c:putactivity /sys/src/cmd/ndb/dn.c:rrattach1 /sys/src/cmd/ndb/dn.c:rravfmt /sys/src/cmd/ndb/dn.c:rrfmt /sys/src/cmd/ndb/dn.c:rrfree /sys/src/cmd/ndb/dn.c:rrlookup /sys/src/cmd/ndb/dn.c:rrname /sys/src/cmd/ndb/dn.c:rrtype /sys/src/cmd/ndb/dn.c:sencodefmt /sys/src/cmd/ndb/dn.c:warning /sys/src/cmd/ndb/dnresolve.c:netquery1 /sys/src/cmd/ndb/dnresolve.c:serveraddrs /sys/src/cmd/ndb/dnsdebug.c:logreply /sys/src/libc/port/pool.c:poolmsize [sys] --rwxrwxr-x M 191333 glenda sys 218358 Sep 22 23:10 386/bin/ndb/dnstcp /sys/src/cmd/ndb/dn.c:dnage /sys/src/cmd/ndb/dn.c:dnageall /sys/src/cmd/ndb/dn.c:dncheck /sys/src/cmd/ndb/dn.c:dndump /sys/src/cmd/ndb/dn.c:dnlookup /sys/src/cmd/ndb/dn.c:dnptr /sys/src/cmd/ndb/dn.c:getactivity /sys/src/cmd/ndb/dn.c:putactivity /sys/src/cmd/ndb/dn.c:rrattach1 /sys/src/cmd/ndb/dn.c:rravfmt /sys/src/cmd/ndb/dn.c:rrfmt /sys/src/cmd/ndb/dn.c:rrfree /sys/src/cmd/ndb/dn.c:rrlookup /sys/src/cmd/ndb/dn.c:rrname /sys/src/cmd/ndb/dn.c:rrtype /sys/src/cmd/ndb/dn.c:sencodefmt /sys/src/cmd/ndb/dn.c:warning /sys/src/cmd/ndb/dnresolve.c:netquery1 /sys/src/cmd/ndb/dnresolve.c:serveraddrs