# How to Create Custom Name Servers Using Your Own Domain

- Publisher: W3domains
- Category: Domains
- Sub-topics: DNS & Infrastructure, Ownership & Legal, Extensions & TLDs
- Published: January 10, 2020 (2020-01-10)
- Reading Time: 1 min (243 words)
- Canonical URL: https://blog.w3domains.com/articles/49-create-name-servers-using-my-own-domain
- Original Source: https://blog.w3domains.com/viewblog/49/Create-Name-Servers-using-my-own-domain

---
Running private, white-label name servers—such as **ns1.yourdomain.com** and **ns2.yourdomain.com**—lets web agencies, resellers, and enterprises brand their DNS infrastructure cleanly instead of exposing a third-party hosting provider's nameservers.

## What You Need Before Starting

Custom nameservers rely on **glue records** (also called Child Name Servers or Host Records) registered at your domain's parent registry. Before making changes, gather:

- One or two static public IP addresses assigned to your DNS / hosting server (such as cPanel, Plesk, or BIND).
- Administrative access to both your **Domain Registrar portal** and your **hosting server's DNS zone editor**.

## Step-by-Step: Creating Custom Name Servers

1. **Obtain your server's public IP address(es):** Confirm the static IPv4 addresses provided by your hosting or VPS provider for primary and secondary DNS.
2. **Register Glue Records at your domain registrar:** Log in to your registrar portal (such as [w3domains.com](https://w3domains.com/) or [w3infotech.com](https://w3infotech.com/)), open **Child Name Servers / Private Name Servers**, and map **ns1.yourdomain.com** and **ns2.yourdomain.com** to your server IPs.
3. **Add matching A records on your hosting server:** Open the DNS zone for yourdomain.com on your hosting server and add matching **A records** for **ns1** and **ns2** pointing to those exact same IP addresses, plus corresponding **NS records**.
4. **Update the domain's nameservers and allow propagation:** Point your domain to ns1.yourdomain.com and ns2.yourdomain.com, then allow a few hours for global DNS caches to refresh.

> Pro tip: For production resilience, host ns1 and ns2 on separate IP addresses—ideally in different networks or availability zones—so DNS stays reachable if one server reboots.
