fcambus / rrda

REST API allowing to perform DNS queries over HTTP
https://www.statdns.com
BSD 2-Clause "Simplified" License
221 stars 56 forks source link

Allow multiple querytype #13

Closed soullivaneuh closed 3 years ago

soullivaneuh commented 4 years ago

Goal

Currently, we can request only one query type at a time. It would be useful to allow multiple query type at once. something like:

https://rrda.domain.com/8.8.8.8:53/free.fr/A,AAAA,NS

Why

We are using RRDA as an internal service to be used by other applications.

On the current case, we want to replace the dns_get_record php function by it, but we have some calls with multiple record type:

\dns_get_record($hostname, \DNS_A | \DNS_AAAA | \DNS_CNAME | \DNS_MX | \DNS_TXT);

With the current implementation of rrda, we have to make 5 HTTP request to get the same information, which is quite heavy.

skunkie commented 4 years ago

Maybe you can use ANY: https://rrda.domain.com/8.8.8.8:53/free.fr/ANY ?