REST API for recursive queries

Tony Finch dot at dotat.at
Tue May 4 21:21:02 UTC 2021


Petr Menšík <pemensik at redhat.com> wrote:

> Because BIND uses DNS protocol only and not any dbus or former lwres
> protocol, you can count only querying -t ANY for single name as
> something similar.

ANY queries don't necessarily give you all the records :-)

In situations where a DNS client wants to do multiple queries at once, it
can either send a load of UDP queries then wait for the answers, or if it
has a TCP connection open, write all the queries in one go, then read the
answers. There's not really much need for fancy features to support
multiple questions when you can do hundreds of concurrent queries with one
or two sockets.

Happy Eyeballs version 2 requires concurrent DNS queries
https://tools.ietf.org/html/rfc8305#section-3

I like to use `adns` for bulk concurrent queries
http://www.chiark.greenend.org.uk/~ian/adns/

Much newer is getdns which has a more JSON-friendly design.
https://getdnsapi.net/

Tony.
-- 
f.anthony.n.finch  <dot at dotat.at>  https://dotat.at/
Biscay: West or northwest 5 or 6, becoming variable 2 to 4 later.
Moderate or rough, becoming moderate. Rain at first. Good,
occasionally moderate.


More information about the bind-users mailing list