Before you start
- Find your public IP. Visit dnsafe.net/myip from the office network.
- Register it. In the DNSAFE portal, add the IP to your network. DNSAFE identifies your network by the public IP your lookups come from, so lookups from unregistered addresses are refused. If your ISP changes your IP from time to time, register the range it uses, or ask for a static IP.
- Note your region's pair. Both addresses apply the same filtering. Full details are on the network page.
Region DNS server 1 DNS server 2 Americas 3.12.124.913.11.62.44Europe, Middle East & Africa 3.11.62.443.12.124.91Asia & Oceania 52.220.82.1943.12.124.91By name,
resolver.dnsafe.netpicks the nearest region. For encrypted DNS usedns.dnsafe.net(DNS-over-TLS, port 853) orhttps://dns.dnsafe.net/dns-query(DNS-over-HTTPS).
Step by step in the docs: DNS resolver setup.
Windows Server and Active Directory
If your computers use domain controllers for DNS, don't point them straight at DNSAFE, or internal names like fileserver.corp.local will stop resolving. Filter the internet lookups at the domain controller instead:
- Open DNS Manager, right-click the server and choose Properties.
- On the Forwarders tab, remove existing forwarders and add your region's two DNSAFE addresses.
- Untick Use root hints if no forwarders are available, or failed lookups will skip the filter.
- Repeat on every domain controller that runs DNS.
Logs will show your office's public IP rather than each PC. That's expected, because the domain controller makes the lookups on the PCs' behalf.
FortiGate (FortiOS)
- Go to Network → Interfaces and edit the LAN interface.
- Under DHCP Server → DNS server, choose Specify and enter your region's two addresses.
- Optionally, set the FortiGate's own resolvers in Network → DNS to the same addresses if clients use the FortiGate as their DNS.
- Click OK. Clients pick up the change when they renew their lease; reconnecting or running
ipconfig /renewspeeds that up.
Cisco Meraki MX
- Go to Security & SD-WAN → Configure → DHCP.
- For each VLAN, set DNS nameservers to Specify nameservers… and enter your region's two addresses, one per line.
- Click Save.
Ubiquiti UniFi
- In the UniFi Network app, go to Settings → Networks and select the network.
- Under DHCP Service Management → DNS Server, turn off automatic DNS and enter your region's two addresses.
- Apply, then repeat for guest and other networks.
If UniFi's own Content Filtering is on, it sends DNS to the gateway and overrides these servers. Turn it off.
pfSense and OPNsense
pfSense
- Go to Services → DHCP Server, open the tab for the LAN interface and enter your region's two addresses under DNS servers.
- If clients use the firewall's own resolver, go to Services → DNS Resolver and enable forwarding mode, then add the two addresses under System → General Setup → DNS Servers.
- Save and apply.
OPNsense
- Go to Services → Dnsmasq DNS & DHCP or Services → Kea DHCP, whichever hands out addresses, and set the DNS servers option to your region's two addresses.
- For the firewall's own lookups, add the same addresses under System → Settings → General.
- If clients use the firewall's Unbound resolver, add them under Services → Unbound DNS → Query Forwarding.
- Save and apply.
SonicWall (SonicOS)
- On SonicOS 7, go to Network → System → DHCP Server (on SonicOS 6.5: Network → DHCP Server) and edit the LAN scope.
- On the DNS/WINS tab, choose Specify manually and enter your region's two addresses.
- Optionally, set the same addresses in the firewall's own DNS settings.
Any other router
Look for the DHCP or LAN settings and a field called DNS server, primary DNS or name server. Enter the two addresses there, not in the WAN or internet settings, which only affect the router itself.
Laptops that leave the office: add them under Roaming devices in the portal, and their own encrypted DNS keeps your policy anywhere. Step by step in the docs: encrypted DNS for devices.
Try DNSAFE on your own network: 14 days free, no card, set up in minutes.
Start free trialCheck that it's working
- On a computer in the office, run
nslookup example.com. The server shown should be one of the DNSAFE addresses (or your domain controller). - Run the DNS leak test. It should show DNSAFE as your resolver.
- Open the DNSAFE portal: lookups from your office should appear in the logs within a minute or two.
Then close the bypass routes
Devices with hard-coded DNS, browsers with their own encrypted DNS, and VPN apps can skip the settings above. Add a firewall rule so only your DNS servers can make outbound DNS queries, and turn off browser DoH by policy: see how to stop DNS filtering bypass.
Frequently asked questions
Should I set DNSAFE as primary and my ISP's DNS as secondary?
No. Devices use the secondary DNS whenever they like, not only when the primary fails, so an unfiltered secondary lets lookups skip filtering. Use both DNSAFE addresses.
Do I need to restart every computer?
No. Devices pick up the new DNS servers when their DHCP lease renews. To speed things up, reconnect Wi-Fi or run ipconfig /renew on Windows.
What if my office has a dynamic IP address?
DNSAFE recognizes your network by its public IP. If yours changes, register the range your ISP uses for your connection, or ask your ISP for a static IP, which most business plans include.