Per-device DNS policies on SecDNS
A single household has phones, laptops, smart TVs, game consoles, watches, and doorbells. SecDNS lets every device carry its own profile, its own DoH or DoT URL, and its own policy, so a kid's phone gets a different filter from the family TV without any clever per-IP tricks.
What it is
Per-device policies are the practice of binding a DNS profile to a single device rather than to an IP address or a network. Each device authenticates implicitly by using a unique resolver URL: when the resolver receives a query, it knows from the URL token which profile to consult and which log to write to.
This is the model NextDNS popularised and that we have adopted for the same reason — it works on cellular, on a friend's Wi-Fi, behind a captive portal, and across OS reinstalls.
How it works
Identity flows through the URL itself. For DoH:
https://dns.secdns.io/dns-query/<device-id>
For DoT, the token is carried in the SNI hostname:
tls://profile-id.secdns.io
When the encrypted connection terminates at the resolver, the URL path or SNI hostname is matched against a token table; the matched token names a profile; the profile names a policy. From that point on, every DNS message inside the connection is processed under that profile.
Because identity is in the URL, the device proves who it is by the fact that it knows the URL. The URL is shared once, at provisioning time, and never travels in plaintext after that (it is inside the TLS session). If a URL leaks, you rotate the token from the console.
Why it matters
The alternative — binding policy to a public IP — is fragile. A home network's public IP can change. Two devices on the same Wi-Fi cannot be told apart. A kid's phone on cellular is invisible to the home router. None of those problems exist when the policy is on the device.
Practical things this unlocks:
- Kid phone with adult filtering applied even on cellular and friends' Wi-Fi.
- Work laptop with corporate phishing protection at home, in the office, and at the airport.
- IoT camera with a default-deny allowlist that only permits the vendor cloud, with everything else blocked silently.
- Per-device query logs, so a flagged event is immediately attributable to a specific device without correlating against a DHCP lease history.
How SecDNS implements it
| Capability | Detail |
|---|---|
| Profile token | Opaque rotatable string |
| Per-device URL | DoH path or DoT SNI |
| Policy granularity | Per profile, with inherited tenant defaults |
| Time-based rules | Yes, with timezone awareness |
| Per-profile log retention | 0 days to configurable maximum |
| Bulk operations | Clone, template, mass-rotate |
Profiles are organised in a tree. Tenants typically create a small set of policy templates (Kids, Teens, Adults, Office, IoT, Servers) and assign profiles to a template. Changing a template propagates to every profile attached to it; per-profile overrides are also supported when one device genuinely needs to differ.
For MSPs and large fleets, the API and Terraform module let you provision a profile, assign a template, and emit the DoH/DoT URL as part of an onboarding script. The same script can hand the URL off to MDM, which then pushes a signed mobileconfig (iOS) or Private DNS payload (Android) to the device, completing the loop without manual steps.