Security13 min read•Updated November 2026

VPS Hosting for Private DNS Infrastructure

Quick answer

Private DNS on a VPS usually means one or both of two roles: a recursive resolver (such as Unbound) that answers lookups for your devices and servers privately, and an authoritative server (such as PowerDNS, BIND or Knot) for internal zones like corp.example. Restrict the resolver to your own networks or VPN, never run an open resolver on the internet, use split-horizon DNS so internal names resolve only inside, optionally offer DNS over TLS or HTTPS, and run two servers for redundancy. DNS needs very little CPU or RAM.

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

RoleWhat it doesCommon software
Recursive resolverLooks up any domain for clients and caches answersUnbound, Knot Resolver, BIND
Authoritative serverAnswers for zones you own or definePowerDNS, BIND, Knot DNS, NSD
Forwarder/filterForwards queries upstream with filteringAdGuard 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

UseSuggested plan
Resolver and internal zones for a team or office2 vCores / 8 GB (two servers for redundancy)
Resolver plus filtering and other light services2–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.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — AMD28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthWebsites, small APIs, bots, staging and VPN serversOrder
VPS 2 — AMD416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,299/monthWooCommerce, Node.js/Python backends, Docker Compose stacks, CI runnersOrder
VPS 3 — AMD832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,499/monthProduction databases, high-traffic sites, multi-container appsOrder
VPS 4 — AMD1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,899/monthLarge production workloads, SaaS platforms, analytics, in-memory cachesOrder

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.

PlanvCoresRAMStorageNetworkPriceGood forBuy
VPS 1 — Intel28 GB DDR4 ECC40 GB NVMe SSD1 Gbps, unmetered₹649/monthBusiness websites, small apps, scheduled jobs and botsOrder
VPS 2 — Intel416 GB DDR4 ECC80 GB NVMe SSD1 Gbps, unmetered₹1,169/monthBusiness software, mid-size databases, several sites on one serverCheck stock
VPS 3 — Intel832 GB DDR4 ECC150 GB NVMe SSD1 Gbps, unmetered₹2,249/monthERP/CRM stacks, heavier databases, multiple production appsCheck stock
VPS 4 — Intel1664 GB DDR4 ECC250 GB NVMe SSD1 Gbps, unmetered₹4,299/monthHigh-memory workloads and consolidated production serversCheck 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.

Frequently Asked Questions

What is a private DNS server?
A resolver and/or authoritative server that answers only for your devices and internal names.
What is the difference between recursive and authoritative DNS?
A recursive resolver looks up any domain for clients; an authoritative server answers for specific zones.
Which software should I use?
Unbound for resolving; PowerDNS, BIND or Knot for authoritative zones.
What is an open resolver?
A resolver answering anyone on the internet, which attackers abuse for amplification attacks.
What is split-horizon DNS?
Returning different answers to internal and external clients for the same names.
Should I use a fake domain like .local or .corp?
Prefer a domain you own to avoid collisions with real or special-use names.
Can I run DNS over HTTPS on a VPS?
Yes, but restrict it to authorised clients, typically over a VPN.
How many DNS servers do I need?
At least two for redundancy.
Does DNS need a powerful server?
No, DNS is very light.
Which plan suits private DNS?
2 vCores / 8 GB per server, with two servers for redundancy.
Instant UPI • ₹649/mo
Fast KVM Cloud Provisioning