Skip to content

Instantly share code, notes, and snippets.

@thiagoeh
Created January 14, 2022 02:47
Show Gist options
  • Save thiagoeh/7bd7bf25e7ea19b0dbeb14d64a7ffc0c to your computer and use it in GitHub Desktop.
Save thiagoeh/7bd7bf25e7ea19b0dbeb14d64a7ffc0c to your computer and use it in GitHub Desktop.
DNS over HTTP (DoH) using Curl
curl --http2 -H 'accept: application/dns-json' "https://1.1.1.1/dns-query?name=cloudflare.com" --next --http2 -H 'accept: application/dns-json' "https://1.1.1.1/dns-query?name=example.com"|jq .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment