You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a simple DOH forwarding myself, but found that using DOG and Q's GET mode worked fine, but using Q's POST mode would return a 500 error. What is the reason for this?
The text was updated successfully, but these errors were encountered:
I found the reason: the way Q sends POST requests is not accepted by mainstream DOH servers.
$ q @https://cloudflare-dns.com/dns-query github.com A --http-method=POST
FATA[0000] got status code 415 from https://cloudflare-dns.com:443/dns-query?dns=oXsBAAABAAAAAAAABmdpdGh1YgNjb20AAAEAAQ
$ q @https://dns.google/dns-query github.com A --http-method=POST
FATA[0000] got status code 400 from https://dns.google:443/dns-query?dns=APcBAAABAAAAAAAABmdpdGh1YgNjb20AAAEAAQ
I created a simple DOH forwarding myself, but found that using DOG and Q's GET mode worked fine, but using Q's POST mode would return a 500 error. What is the reason for this?
The text was updated successfully, but these errors were encountered: