Update local DNS resolver
Last updated Oct 12, 2026 With a Gateway location created, you have the ability to send traffic to your environment. You can test without risk by changing your DNS resolvers in your browser or network settings.
Change DNS resolver at the network level
To configure your device to send traffic to Gateway:
<details>
<summary>
macOS
</summary>
</details>
<details>
<summary>
Windows
</summary>
</details>
<details>
<summary>
Linux
</summary>
cat /etc/resolv.conf
nameserver 172.64.X.X
nameserver 172.64.X.X
</details>
<details>
<summary>
iPhone
</summary>
</details>
<details>
<summary>
Android
</summary>
</details>
Change DNS resolver in the browser
To configure your browser to send traffic to Gateway:
- Obtain your DNS over HTTPS (DoH) address:
- Go to Traffic policies > DNS locations.
- Select the default location.
- Copy your DNS over HTTPS hostname:
https://<YOUR_DOH_SUBDOMAIN>.cloudflare-gateway.com/dns-query - Follow the configuration instructions for your browser:<details><summary>
Mozilla Firefox</summary>
- In Firefox, go to Settings.
- In Privacy & Security, go to DNS over HTTPS.
- Under Enable secure DNS using, select Max Protection.
- In Choose provider, choose Custom.
- In the field, enter <code>https://<YOUR_DOH_SUBDOMAIN>.cloudflare-gateway.com/dns-query</code>.
Firefox is now configured to use your DoH endpoint. For more information on configuring DoH settings in Firefox, refer to <a href="https://support.mozilla.org/kb/dns-over-https">Mozilla's documentation ↗︎</a>.
Note
If you want to enforce DNS policies through the Cloudflare One Client instead of over DoH, you can disable DoH for your organization by blocking the <a href="https://support.mozilla.org/kb/canary-domain-use-application-dnsnet">Firefox DoH canary domain ↗︎</a>.</details>
<details><summary>
Google Chrome</summary>
- In Chrome, go to Settings > Privacy and security > Security.
- Scroll down and turn on Use secure DNS.
- Select With Custom.
- In the Enter custom provider field, enter <code>https://<YOUR_DOH_SUBDOMAIN>.cloudflare-gateway.com/dns-query</code>.
Read more about <a href="https://www.chromium.org/developers/dns-over-https">enabling DNS over HTTPS ↗︎</a> on Chrome.</details>
<details><summary>
Microsoft Edge</summary>
- In Microsoft Edge, go to Settings.
- Select Privacy, Search, and Services, and scroll down to Security.
- Turn on Use secure DNS.
- Select Choose a service provider.
- In the Enter custom provider field, enter <code>https://<YOUR_DOH_SUBDOMAIN>.cloudflare-gateway.com/dns-query</code>.</details>
<details><summary>
Brave</summary>
- In Brave, go to Settings > Security and Privacy > Security.
- Turn on Use secure DNS.
- Select With Custom.
- In the Enter custom provider field, enter <code>https://<YOUR_DOH_SUBDOMAIN>.cloudflare-gateway.com/dns-query</code>.</details>
<details><summary>
Safari</summary>
Currently, Safari does not support DNS over HTTPS.</details>
- Verify that third-party firewall or TLS decryption software does not inspect or block traffic to the DoH endpoint:
https://<YOUR_DOH_SUBDOMAIN>.cloudflare-gateway.com/dns-query.
More locations
To configure your router or OS, or to add additional DNS endpoints, refer to DNS locations.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/learning-paths/cybersafe/gateway-onboarding/gateway-update-local-resolver/#page","headline":"Update local DNS resolver","description":"Learn about update local dns resolver in this guide.","url":"https://developers.cloudflare.com/learning-paths/cybersafe/gateway-onboarding/gateway-update-local-resolver/","inLanguage":"en","image":"https://developers.cloudflare.com/learning-paths/cybersafe/gateway-onboarding/gateway-update-local-resolver/og.png?v=65940d235229e656","dateModified":"2026-10-12","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Learn about verify local connectivity in this guide. title: Verify local connectivity image: https://developers.cloudflare.com/learning-paths/cybersafe/gateway-onboarding/gateway-verify-local-connectivity/og.png?v=1d8a93134420870d
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/learning-paths/llms.txt
Use this file to discover all available pages before exploring further.
