dnsproxy icon indicating copy to clipboard operation
dnsproxy copied to clipboard

Support DoH JSON API

Open LittleChest opened this issue 1 year ago • 2 comments

$ curl -H 'accept: application/dns-json' 'https://dnsproxy.lan:8443/dns-query?name=example.com&type=A' -k
Bad Request

https://developers.google.com/speed/public-dns/docs/doh/json

LittleChest avatar Oct 27 '24 05:10 LittleChest

Is anyone working on this (or is it planned in some way)? If not, I could try my hand at implementing the JSON API for dnsproxy myself. It's something I would really like having support for on my network. Also open for collaboration on this, if anyone else is interested.

melnary avatar Feb 19 '25 16:02 melnary

~When I ran agh in debug mode then it appeared that the issue is ParseAddr, like it is unable to parse IP of the request.~

That is not the issue. But yes, it doesn't support /dns-query?name=example.com&type=A

It does support /dns-query?dns=BASE64string_query

For my usage I got it working, HAproxy can make some health checks now without spamming into log

krisavi avatar May 10 '25 11:05 krisavi