Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
VGSources
Blog

How to Set Up Custom Name Servers for Your VPS

A practical, end-to-end guide to running custom nameservers on a VPS, including glue records, zone consistency, registrar delegation, verification commands, caching, and failure diagnosis.
Length10 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To run private nameservers such as ns1.example.com and ns2.example.com on a VPS, you need four pieces to agree: an authoritative DNS service on the VPS, reachable public IP addresses, registrar host (glue) records, and a domain delegation that lists those nameservers. The parent zone uses glue to reach nameservers whose hostnames are inside the domain they serve.

The safest sequence is to build and test the zone first, register both child nameservers at your registrar, delegate the domain, verify the parent and each server from outside the VPS, and keep the previous DNS service online until caches have expired.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What a custom nameserver is

A custom, private, or white-label nameserver is a hostname you control and present as authoritative for a domain. Typical names are ns1.example.com and ns2.example.com. “Private” describes the branding and delegation, not a private network: recursive resolvers on the internet must still be able to reach the server over public DNS.

Your VPS becomes authoritative when its DNS software answers with the zone’s SOA, NS, and other records, and the parent registry delegates the domain to that VPS. A hosting control panel can manage the same records, but the requirements do not change.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.

Why glue records are required

Normally, a resolver finds a domain’s nameservers by following the parent zone. An in-bailiwick nameserver creates a bootstrap loop: to resolve ns1.example.com, the resolver needs example.com; to resolve example.com, it needs the nameserver. The parent breaks that loop by publishing a glue record containing the nameserver’s address. AWS documentation describes this address as a glue record.

Glue is held at the registrar or registry side, while the matching A or AAAA record is held in your authoritative zone. Both are necessary. Cloudflare notes that in-bailiwick nameservers still need usable parent glue; omitting it can make DNS lookups fail.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Plan the nameservers and addresses

Choose hostnames

Use names below the domain you will delegate, for example:

  • ns1.example.com
  • ns2.example.com

The names must be entered consistently at the registrar, in the zone’s NS records, and in every delegation setting. You can use other labels, but the familiar ns1/ns2 convention makes administration and troubleshooting easier.

Assign stable public addresses

Document the exact address assigned to each hostname. If you have IPv4, record an A address; if you provide IPv6, record an AAAA address as well. AWS allows both IPv4 and IPv6 values for a white-label nameserver. Do not publish an address that can change when the VPS is rebuilt or reprovisioned.

Plan for independent reachability

Two names are the minimum practical delegation, but two labels on one machine are not the same as two independent failure domains. If both addresses depend on one VPS, one hypervisor, one network path, or one firewall, a single outage can take out the entire domain. A second server in another location, or a managed secondary service, improves resilience. The technical steps below work with one VPS, but the reliability decision is yours.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Prepare the VPS for authoritative DNS

Install an authoritative DNS service

Install and configure authoritative DNS software such as BIND9, or enable the authoritative DNS module in your hosting panel. Configure it to serve the domain’s zone rather than act only as a recursive resolver. Recursion should not be exposed to the public internet unless you have deliberately secured and restricted it.

Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed

Open both DNS transports

Permit inbound UDP and TCP on port 53 in every firewall layer:

  • the operating-system firewall;
  • the VPS provider’s network firewall or security group; and
  • any perimeter firewall, load balancer, or security appliance in front of the address.

Most queries use UDP, but resolvers retry over TCP for truncated responses and other conditions. Allowing only UDP produces intermittent failures that can look like propagation problems.

Make the daemon listen publicly

Confirm that the DNS process listens on the VPS’s public address, not just on 127.0.0.1 or an internal interface. Check the service status and local listening sockets, then test from a different network. A local query can succeed while outside resolvers time out if the public interface or provider firewall is wrong.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Create the authoritative zone

Create one authoritative zone for the domain and set its start-of-authority data, nameserver set, and address records. The essential relationships for example.com are:

Record location Record Value Purpose
Authoritative zone example.com NS ns1.example.com Nameserver member of the delegation
Authoritative zone example.com NS ns2.example.com Second nameserver member
Authoritative zone ns1.example.com A 192.0.2.10 IPv4 address for the first nameserver
Authoritative zone ns2.example.com A 192.0.2.11 IPv4 address for the second nameserver
Authoritative zone ns1.example.com AAAA Your assigned IPv6 address Optional IPv6 reachability
Authoritative zone ns2.example.com AAAA Your assigned IPv6 address Optional IPv6 reachability

The addresses above are documentation examples reserved for testing; replace them with the stable addresses assigned to your VPS. If you publish an AAAA record, IPv6 must actually route to the DNS service. A broken IPv6 path can cause delays or failures for resolvers that try it first.

Set the zone’s SOA record and serial according to your DNS software’s normal procedure. The zone must answer authoritatively for both the apex and the nameserver hostnames. After editing, reload the DNS service and check its logs for syntax or permission errors.

Register child nameservers and glue at the registrar

Registrars use different labels. Look for Register nameserver, Child nameservers, Private nameservers, Host records, or Glue records. This operation is separate from changing the domain’s nameserver list.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)
  1. Open the registrar’s host or child-nameserver page for example.com.
  2. Register ns1.example.com with the first VPS IPv4 address and, if used, its IPv6 address.
  3. Register ns2.example.com with the second address set.
  4. Save the objects and wait for the registrar to confirm that they were accepted.

Do not enter only an A record in the DNS zone and assume that creates glue. The parent registry must know the child nameserver and its address independently.

Delegate the domain to the new nameservers

Once the child objects exist, change the domain’s authoritative nameserver list at the registrar to:

  • ns1.example.com
  • ns2.example.com

Leave out old nameservers only after the new servers answer correctly. Cloudflare’s guidance is that the parent must contain the authoritative nameserver names and required glue for in-bailiwick servers; otherwise lookups fail. The parent’s NS set, glue addresses, and your child zone’s A/AAAA answers must describe the same servers.

Verify the delegation from outside the VPS

Testing only from the VPS can hide routing and firewall problems. Use a workstation or an independent monitoring host on another network. Replace the example domain and addresses in the commands below.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Inspect the parent delegation and glue

Query a root or TLD server to see what the parent publishes. cPanel documentation demonstrates using dig for this kind of inspection:

dig NS example.com @<parent-or-tld-server>
dig +trace example.com

Confirm that the parent response lists both intended nameservers and supplies glue addresses for each in-bailiwick hostname. The exact parent server to query depends on the top-level domain; use an authoritative server for that parent, not a recursive cache, when you need to inspect delegation.

Query each authoritative server directly

dig SOA example.com @ns1.example.com
dig NS example.com @ns1.example.com
dig SOA example.com @ns2.example.com
dig NS example.com @ns2.example.com

Each answer should carry the aa (authoritative answer) flag and return the expected zone serial, nameserver set, and records. Repeat address queries for the nameserver hostnames:

Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC
dig A ns1.example.com @ns1.example.com
dig A ns2.example.com @ns2.example.com
dig AAAA ns1.example.com @ns1.example.com
dig AAAA ns2.example.com @ns2.example.com

An absent AAAA answer is fine when you intentionally provide IPv4 only. An incorrect address is not: compare every child answer with the corresponding glue value.

Check TCP as well as UDP

Force TCP queries to each server:

dig +tcp SOA example.com @ns1.example.com
dig +tcp SOA example.com @ns2.example.com

Successful UDP queries do not prove that TCP port 53 is open. Test both transports after any firewall or provider-network change.

Manage the transition and caching period

Keep the previous DNS service online while the parent delegation and resolver caches update. AWS documentation notes that recursive resolvers typically cache nameserver information for two days, so some users can continue to receive the old delegation for up to two days. During that interval, answer consistently from both old and new services or maintain a deliberate migration plan.

Do not repeatedly switch the delegation while waiting; every change can introduce another cache interval. Monitor authoritative answers from several networks and remove the old service only after the new servers are consistently reachable and returning the intended zone.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Worked example

Suppose example.com uses two VPS addresses, 192.0.2.10 and 192.0.2.11. The complete arrangement is:

  1. Registrar child record: ns1.example.com → 192.0.2.10.
  2. Registrar child record: ns2.example.com → 192.0.2.11.
  3. Zone record: example.com NS ns1.example.com.
  4. Zone record: example.com NS ns2.example.com.
  5. Zone address records point ns1 and ns2 to the same addresses registered as glue.
  6. Registrar delegation lists only ns1.example.com and ns2.example.com after direct tests succeed.

If the registrar shows 192.0.2.10 for ns1 but the child zone answers with another address, fix the mismatch before relying on the delegation.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot failures by symptom

SERVFAIL, timeouts, or intermittent resolution

  • Verify that the DNS daemon is running and listening on the public interface.
  • Confirm inbound UDP and TCP port 53 at both VPS and provider firewalls.
  • Query each nameserver directly from an external network.
  • Check daemon logs for zone-load, syntax, permission, or recursion errors.

A timeout indicates reachability or listening problems more often than a bad record. Fix transport first, then recheck the zone.

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.

“Nameserver not found” or missing child host

Return to the registrar’s host-record page and confirm that both child objects exist under the correct parent domain. Check spelling, trailing-dot handling in the registrar interface, and every registered IPv4/IPv6 value. AWS warns that incorrect glue can make a domain unavailable for the cache period, so correct the object rather than waiting for a bad address to expire.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Parent and child data disagree

Compare three outputs side by side:

  1. The parent’s NS response.
  2. The parent’s glue A/AAAA values.
  3. Direct authoritative answers from each nameserver.

Cloudflare requires the expected nameservers and addresses to match for activation. Update the registrar object or the zone, then repeat external tests until every value agrees.

Only some locations resolve

This usually reflects resolver caching during the delegation change. Keep the old service available, avoid further delegation edits, and allow the cache window to pass. If the problem persists beyond that period, compare answers from affected networks with direct authoritative queries; inconsistent results can indicate multiple old delegations or an anycast, routing, or firewall issue.

One nameserver works and the other fails

Test ns1 and ns2 independently for SOA, NS, address records, UDP, and TCP. A delegation is only as reliable as its weaker listed server. Correct the failed server or remove it from the parent delegation temporarily while you repair it; do not leave a dead nameserver published indefinitely.

Self-hosted VPS DNS versus managed DNS

Both approaches can provide authoritative answers. The important difference is who operates the servers and failure domains.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Decision area Authoritative DNS on your VPS Managed DNS service
Operational responsibility You patch the operating system, DNS software, firewall, monitoring, backups, and recovery process. The provider operates the service; you manage zones and account access.
Geographic redundancy Depends on how many independent VPS locations and networks you deploy. Usually supplied by the service, but exact architecture varies by provider.
Registrar and glue control You register child nameservers and maintain their addresses. You normally delegate to the provider’s nameservers; custom glue requirements depend on its design.
IPv4/IPv6 support You must route, firewall, and test every published address. Availability and behavior depend on the provider’s implementation.
DNSSEC and automation You are responsible for key management, signing, rollover, and API or configuration automation. Features, automation, and DNSSEC workflow depend on the selected service.
Monitoring and outage impact You need external checks; a VPS outage can affect all zones hosted there. Monitoring and redundancy are outsourced, but an account or provider outage remains a dependency.
Total cost Includes VPS capacity, administration time, backups, monitoring, and possible secondary servers; no universal price is established here. Pricing and plan limits vary by provider and change over time; check current terms directly.

Choose self-hosting when you need control over the authoritative stack, automation, or infrastructure layout and can operate it continuously. Choose managed DNS when geographic redundancy and reduced maintenance matter more than running the service yourself.

Operational checklist after launch

  • Record which registrar account owns each child nameserver object.
  • Document every IPv4 and IPv6 address, firewall rule, and DNS software configuration.
  • Monitor SOA and NS answers from outside your VPS.
  • Alert separately on UDP failure, TCP failure, and incorrect address answers.
  • Keep zone data and configuration backups in a location independent of the VPS.
  • Plan how you will change glue before moving an address; changing a nameserver IP can be disruptive while old glue is cached.
  • Review whether two servers actually provide independent power, network, and geographic paths.
  • Test a complete rebuild or failover procedure before the first emergency.

The core invariant is simple: the parent’s delegation and glue, the authoritative zone’s NS and address records, and the servers’ live answers must all identify the same reachable systems. If those values agree and both DNS transports are open, custom nameserver delegation on a VPS can resolve normally; if they do not, no amount of waiting will repair the mismatch.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.