Every connection starts with a DNS lookup. Running your own DNS gives you private names for internal services, control over which upstream resolvers see your queries, faster cached lookups for your servers, and a foundation for filtering and zero trust access. It also carries responsibility: misconfigured DNS servers are abused for amplification attacks, and DNS outages break everything. This guide covers a safe, practical setup.
Recursive vs Authoritative
| Role | What it does | Common software |
|---|---|---|
| Recursive resolver | Looks up any domain for clients and caches answers | Unbound, Knot Resolver, BIND |
| Authoritative server | Answers for zones you own or define | PowerDNS, BIND, Knot DNS, NSD |
| Forwarder/filter | Forwards queries upstream with filtering | AdGuard Home, Pi-hole, dnsmasq |
Many private setups combine a resolver for clients with a small authoritative zone for internal names; resolvers like Unbound can also serve simple local zones directly.
Setting Up a Private Resolver
- Install Unbound and allow queries only from your VPN, private networks or server IPs.
- Enable DNSSEC validation so forged answers are rejected.
- Decide whether to resolve recursively from the root servers or forward to trusted upstream resolvers over TLS.
- Tune cache size and prefetching for frequently used names.
Never Run an Open Resolver
A resolver that answers anyone on the internet is quickly abused to amplify DDoS attacks against third parties, and providers will act against servers that take part. Bind the resolver to private interfaces or VPN addresses, restrict access with its own access controls, and firewall port 53 from the internet (see our UFW guide). Test from outside that your resolver does not answer.
Internal Zones and Split-Horizon DNS
Use a domain you control for internal names (for example internal.example.com or a dedicated domain) rather than made-up top-level domains, which can collide with real ones. Split-horizon DNS returns internal addresses to internal clients and public addresses (or nothing) to the internet. With a mesh VPN such as Headscale, configure split DNS so internal domains go to your private resolver (see our Headscale guide).
DNS over TLS and HTTPS
Encrypted DNS protects queries from snooping on untrusted networks. Unbound supports DNS over TLS; DNS over HTTPS can be served by resolvers that support it or through a proxy. Provide encrypted endpoints only to authorised clients, typically over your VPN, so you do not create a public resolver by accident.
Redundancy
DNS is critical: if it fails, nothing resolves. Run at least two servers, ideally on separate VPS servers or locations, configure clients with both, and keep zone data synchronised (primary/secondary zone transfers with TSIG keys, or a database-backed setup such as PowerDNS with replication).
Filtering
Blocking malware, phishing and ad domains at the resolver protects every device behind it. Tools such as AdGuard Home, Pi-hole or response policy zones in Unbound and BIND provide this. See our DNS filtering guide.
Monitoring
Monitor query rates, cache hit ratio, failures (SERVFAIL), latency and zone transfer health. Alert if a server stops answering. Our DNS lookup tool helps check public records quickly.
Sizing
| Use | Suggested plan |
|---|---|
| Resolver and internal zones for a team or office | 2 vCores / 8 GB (two servers for redundancy) |
| Resolver plus filtering and other light services | 2–4 vCores / 8–16 GB |
Example: Internal Names for a Distributed Team
A company runs Unbound on two small VPS servers in Mumbai and Noida, reachable only over its mesh VPN. Unbound serves an internal zone for internal.example.com, validates DNSSEC and forwards public queries over TLS. Headscale's split DNS sends internal lookups to these resolvers, so grafana.internal.example.com works from any laptop on the VPN and nowhere else.
Common Mistakes
- Running an open resolver.
- Using fake top-level domains for internal names.
- A single DNS server with no redundancy.
- Disabling DNSSEC validation to fix a problem instead of finding the cause.
- Forgetting to monitor resolution failures.
Next Steps
Decide which roles you need, pick a domain for internal names, deploy Unbound (and an authoritative server if needed) on two VPS servers, restrict access to your VPN, and test from outside that nothing answers publicly.
In Short
Run a private resolver restricted to your networks, serve internal zones with split-horizon DNS, enable DNSSEC and encrypted DNS for clients, never expose an open resolver, and deploy two servers for redundancy.
Managing Internal Records
Internal DNS records drift quickly as servers come and go. Keep zone data in version control or a database-backed server with an API, so changes are reviewed and logged. Automate records for servers created by your provisioning tools, remove records when servers are retired, and use low TTLs for records that may move during migrations. Document naming conventions so names stay predictable, such as service, environment and location.
Testing Your Setup
Check that internal clients resolve internal and public names, that DNSSEC validation works, that external hosts get no answer from your resolver, and that clients fail over to the second server when one is stopped. Repeat these checks after every major change. Security controls only help if they keep working, so schedule a short quarterly review: confirm who still has access, apply pending updates, test that backups restore and check that nothing you closed has quietly been reopened by a later change. Document each step as you go, including the reasons for every rule and exception, so colleagues can maintain the setup confidently and auditors or customers can see how access is controlled.
SkyRainCloud Plans for This Workload
DNS is very light: 2 vCores / 8 GB handles a resolver and internal zones for a large team. Run two small servers for redundancy rather than one big one.
AMD EPYC 7C13 VPS
Dedicated KVM vCores on AMD EPYC 7C13 (up to 3.70 GHz) with DDR4 ECC memory, NVMe SSD and an unmetered 1 Gbps port.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — AMD | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Websites, small APIs, bots, staging and VPN servers | Order |
| VPS 2 — AMD | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,299/month | WooCommerce, Node.js/Python backends, Docker Compose stacks, CI runners | Order |
| VPS 3 — AMD | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,499/month | Production databases, high-traffic sites, multi-container apps | Order |
| VPS 4 — AMD | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,899/month | Large production workloads, SaaS platforms, analytics, in-memory caches | Order |
Intel Xeon Platinum 8269CY VPS
KVM VPS on Intel Xeon Platinum 8269CY (up to 3.80 GHz Turbo) with DDR4 ECC memory, NVMe SSD, full root access and an unmetered 1 Gbps port.
| Plan | vCores | RAM | Storage | Network | Price | Good for | Buy |
|---|---|---|---|---|---|---|---|
| VPS 1 — Intel | 2 | 8 GB DDR4 ECC | 40 GB NVMe SSD | 1 Gbps, unmetered | ₹649/month | Business websites, small apps, scheduled jobs and bots | Order |
| VPS 2 — Intel | 4 | 16 GB DDR4 ECC | 80 GB NVMe SSD | 1 Gbps, unmetered | ₹1,169/month | Business software, mid-size databases, several sites on one server | Check stock |
| VPS 3 — Intel | 8 | 32 GB DDR4 ECC | 150 GB NVMe SSD | 1 Gbps, unmetered | ₹2,249/month | ERP/CRM stacks, heavier databases, multiple production apps | Check stock |
| VPS 4 — Intel | 16 | 64 GB DDR4 ECC | 250 GB NVMe SSD | 1 Gbps, unmetered | ₹4,299/month | High-memory workloads and consolidated production servers | Check stock |
Prices are monthly in INR as listed on the SkyRainCloud store (verified 2026-11-14). Stock and final pricing are shown on the product page at checkout.