Open thepasto opened 1 year ago
Hi @thepasto,
This code implements the DoH protocol as specified in RFC8484. The dns-query endpoint expects to be receive a GET requests with a dns
parameter containing a base64url encoded DNS packet, or a POST with a raw DNS packet. It currently does not support being sent a name
parameter with a string.
However, you're not the first to ask about name
lookups so it might be something I can add. Can you point me to the reference docs that describe the protocol that you are attempting to use please? Is it this JSON-over-DoH protocol: https://developers.google.com/speed/public-dns/docs/doh/json ?
Hi @TuxInvader, thanks for your reply, I solved the problem i had using v2 of your repository. Of course using the format you mentioned above, i found an explanation here,
As for my request, the protocol could be described here.
But it looks like the same thing you linked even if from a different source. Thank you for your interest and your work!
Hello, i'm trying to use your example, nginx-doh-and-dot-to-dns.conf to fit my server configuration. I'm using pihole as dns, so 127.0.0.1:53 is my pihole istance.
Curl test after a while, returns 504
curl --http2 -H 'accept: application/dns-json' 'https://***.***.**/dns-query?name=google.com'
My configuration:
In the dns log file i can see qname is empty:
What am i doing wrong?
If you need more, just ask, thank you