plan9fox/sys/src/cmd/ndb
cinap_lenrek 2728e06589 ndb/dns: lookup *all* entries in dblookup(), v4 and v6 queries in parallel, remove weigthed timeouts
dblookup() used to only return the first matching entry. in
case of ipv6, we want all entries returned to get both v4
and v6 addresses... and these might not neccesarily be in
the same entry (see /lib/ndb/common). note also this makes
it behave the same as in cachedb mode which reads in the
whole database.

we do not know if v4 or v6 routing works, so the simplest
is just to query v4 and v6 nameservers in parallel. this is
done by changing serveraddrs() to return one address type,
and we make sure to get at least one v4 and one v6 address
each round.

get rid of the weigthed timeout code... there where too many
assumptions. instead, we give a round 500ms timeout (or 1 second
in patient mode) and honor the maximum query time.
2018-05-11 22:37:28 +02:00
..
convDNS2M.c
convM2DNS.c
cs.c ndb/cs: fix crash in ndbredorder due to ndbnew() not maintaining the ->line ring 2018-05-01 22:17:27 +02:00
csquery.c ndb/csquery: insert \n between read chunks 2018-04-28 04:40:09 +02:00
dblookup.c ndb/dns: lookup *all* entries in dblookup(), v4 and v6 queries in parallel, remove weigthed timeouts 2018-05-11 22:37:28 +02:00
dn.c
dnarea.c
dnnotify.c
dnresolve.c ndb/dns: lookup *all* entries in dblookup(), v4 and v6 queries in parallel, remove weigthed timeouts 2018-05-11 22:37:28 +02:00
dns.c ndb/dns: lookup *all* entries in dblookup(), v4 and v6 queries in parallel, remove weigthed timeouts 2018-05-11 22:37:28 +02:00
dns.h ndb/dns: cleanup 2018-01-28 22:46:48 +01:00
dnsdebug.c ndb/dns: lookup *all* entries in dblookup(), v4 and v6 queries in parallel, remove weigthed timeouts 2018-05-11 22:37:28 +02:00
dnserver.c
dnsgetip.c
dnsquery.c ndb/dnsquery, ndb/csquery: handle long lines 2018-04-19 01:00:12 +02:00
dnstcp.c ndb/dns: remove single-ip-address assuptions 2018-04-17 00:48:42 +02:00
dnudpserver.c fix parseip() error handling in ipconfig, ppp, tftpfs and dns 2018-04-17 01:34:10 +02:00
idn.c
inform.c ndb/dns: remove single-ip-address assuptions 2018-04-17 00:48:42 +02:00
ipquery.c
mkdb.c
mkfile
mkhash.c
mkhosts.c
query.c