Skip to content

Instantly share code, notes, and snippets.

@jkingsman
Last active September 14, 2019 15:31
Show Gist options
  • Save jkingsman/e8267ba8b4b6b0fd716bcc6a73b4525e to your computer and use it in GitHub Desktop.
Save jkingsman/e8267ba8b4b6b0fd716bcc6a73b4525e to your computer and use it in GitHub Desktop.
location /dns-query {
proxy_pass https://dns.google/dns-query;
}
VS.
http {
upstream dohproviders {
server dns.google;
# also tried server dns.google:443;
}
server {
location /dns-query {
proxy_pass https://dohproviders/dns-query;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment