Why GET requests use base64url
A DNS query is binary. To put it in a URL for a GET request, RFC 8484 says to encode it
with base64url and send it as the dns parameter.
+ and /, which are special in URLs.- and _ instead, and omits the = padding.POST avoids encoding entirely: send the raw bytes with Content-Type: application/dns-message.This proxy also accepts padded or standard-alphabet input on GET and normalises it before forwarding.
base64.urlsafe_b64encode(q).rstrip(b'=')openssl base64 -A | tr '+/' '-_' | tr -d '='