SecDNS

Per-device DNS policies and profile management on SecDNS protective DNS

SecDNS gives every device its own profile, its own DoH/DoT URL, and its own policy, so a kid phone, a work laptop, and an IoT camera each get the right filter.

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

CapabilityDetail
Profile tokenOpaque rotatable string
Per-device URLDoH path or DoT SNI
Policy granularityPer profile, with inherited tenant defaults
Time-based rulesYes, with timezone awareness
Per-profile log retention0 days to configurable maximum
Bulk operationsClone, 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.

Frequently asked questions

How does SecDNS identify which device is asking?

Each device uses a unique DoH URL or DoT hostname that embeds a profile token. The resolver maps the token to a profile and applies that profile's policy. No client certificates or shared secrets needed.

Can I share one profile across many devices?

Yes. The profile is the policy unit, not the device. Many tenants run a single "office laptops" profile across a hundred devices when they all need the same rules, then split out exceptions only when needed.

What happens when I move a device between networks?

The profile travels with the device, because the DoH/DoT URL is configured on the device itself. Switching from home Wi-Fi to cellular to a coffee shop network keeps the same SecDNS resolver and the same policy.

Can I schedule different rules at different times?

Yes. Each profile supports time-based rules (work hours, bedtime, weekends) with full timezone support. Schedules are evaluated against the device's reported timezone or the profile's default.

How many devices can one tenant have?

There is no hard cap on most plans. Free tier limits the number of active profiles; paid plans treat devices as essentially unlimited. The bottleneck is usually the admin UX, not the resolver.

Can I rotate a device URL if it leaks?

Yes. Generate a new token from the console; the old URL stops resolving immediately. Old query logs remain searchable under the rotated profile.