Network rules#
Network rules work with IP addresses instead of domain names. They do two independent jobs: identifying which network a query comes from, and blocking answers that point into address ranges you choose. Both are set through the GraceDNS API, not in the web app; to have them set or changed, write to support@gracedns.eu with your configuration id.
Linked client ranges: map networks to a configuration#
Classic DNS carries no configuration id, so for plain port-53 setups you link your network's public IP address or range (in CIDR form, like 203.0.113.0/24) to a configuration. Every query arriving from that range gets that configuration's rules. This is how an office, a school building or a home router gets filtered without changing every device; see router setup.
You can link several ranges to one configuration, and different ranges to different configurations. When ranges nest, the most specific range wins: with a company range 203.0.113.0/24, a branch office at 203.0.113.0/25 or 203.0.113.128/25 gets its own rules, and the rest of the company keeps the company configuration. Classic DNS queries from addresses that are not linked are answered without any filtering. Linked ranges are IPv4 only: queries that reach GraceDNS over IPv6 are not matched to a linked range and are answered without filtering, so enter only the GraceDNS IPv4 resolver address in your router.
If your public IP changes (common on home connections), update the linked range. Until you do, queries from your network are answered without any filtering: none of your configuration's rules apply, threat protection included. If your provider reassigns your previous address to another customer, that customer's queries are matched to your configuration until you remove the old range. Encrypted DNS with your id in the hostname or URL avoids both problems.
Blocked answer ranges: refuse answers by destination#
The second kind of rule looks at where an answer points. Add a blocked answer range and any lookup whose answer contains an address inside it is refused, whatever the domain. Use it to cut off a hosting range that keeps serving abuse, or to stop domains from resolving into a given address space, without listing domains. Ranges are IPv4 only: IPv4 addresses embedded in IPv6 answers are checked against them, native IPv6 addresses are not. Your allowlist does not override these blocks, because they are address-based by design.
Back to features.