Use curl to send a DoH request #7475
-
Hi According to Cloudflare I can use the following command to send a DoH request: curl --header "accept: application/dns-json" "https://cloudflare-dns.com/dns-query?name=example.com&type=AAAA" | jq but the same command doesn't work for AdGuard Home: curl -k --header "accept: application/dns-json" "https://dns.myhome.com/dns-query?name=example.com&type=AAAA"
> Bad Request This is while the DoH is working correctly and the curl can resolve names using it: curl --doh-url "https://dns.mazhome.ir/dns-query" https://example.com After above command this added to my logs (-> AdGuard Home is up and working!): So, how to use curl to get JSON DoH response from AdGuard Home? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
Hi |
Beta Was this translation helpful? Give feedback.
At the current moment, no
AdguardTeam/dnsproxy#422