Router setup#
Setting GraceDNS on your router protects every device on your network at once, including phones, laptops, smart TVs, consoles and IoT devices, with nothing to install on each one.
How it works#
Most routers only speak classic DNS (port 53), which carries no configuration id. GraceDNS identifies your network by its public IP address instead: you link your network's public IP address to your configuration, and every query arriving from it gets your rules.
Steps#
- Find your network's public IPv4 address. Your router's status page shows it, and a "what is my IP" search from any device on the network works too.
- Link that address to your configuration as a client IP: a single address, or a range in CIDR form if your provider assigned you one. Only IPv4 addresses can be linked. Linked addresses are part of the configuration's network rules. The web app does not edit them: to link an address, or to change it later, write to support@gracedns.eu with your configuration id and the address.
- On your router's admin page, find the DNS server setting. It is usually under Internet, WAN or DHCP settings.
- Set the DNS server to
116.202.3.157, the GraceDNS resolver address, and remove any other DNS servers so that lookups cannot bypass the filter. If the router requires a second server, enter the same address again. If your network uses IPv6, make sure the router does not also hand out other IPv6 DNS servers (for example your provider's), because devices may use those instead. - Renew the DHCP lease on a device (or restart it), then visit a domain on your denylist. It should no longer load.
Dynamic IP addresses#
Many home connections receive a new public IP address from time to time. When that happens, queries from your network no longer match the linked address. Until the link is updated, they are answered with the service's default configuration instead of yours, so none of your settings apply, including your protection lists, denylist and block page. Your previous address may also be reassigned to another customer of your provider, whose lookups would then use your configuration until the link is changed. Options:
- Have the linked address updated after every change (see step 2). If your provider offers a static IP address, it avoids the problem.
- Use encrypted DNS, which carries your configuration id in the connection and is unaffected by IP changes: on the router itself where supported (next section), or per device with Android Private DNS, an Apple profile or browser DoH.
Routers with encrypted DNS support#
If your router supports encrypted DNS, use it instead of plain DNS. Your queries are then encrypted and identify your configuration without any IP linking.
- DNS over TLS (for example recent Fritz!Box models, OpenWrt, pfSense and OPNsense): set the server name to
<configid>.dns.gracedns.eu. If the router also asks for a server address, use116.202.3.157. - DNS over HTTPS: set the server URL to
https://dns.gracedns.eu/<configid>.
Enforce the filter (recommended)#
Devices and apps with hardcoded DNS can bypass your router's setting. To enforce the filter, add firewall rules that block outbound TCP and UDP port 53 to any destination except your router. What DNS filtering cannot do explains what such rules can and cannot prevent.
Back to docs.