Net2Secure: A Leading Data Center Service Provider in India

Home Knowledge Base Tech Guide /

Steps to Configure Private Nameservers in WHM Panel


Prerequisites

Before you begin, ensure you have:

Example:

You'll create:

Step 2: Log in to WHM

Access WHM as the root user.

https://your-server-ip:2087

Step 3: Configure Nameservers in WHM

Navigate to:

WHM

Locate the Nameservers section.

Enter:

Nameserver 1:
ns1.example.com

Nameserver 2:
ns2.example.com

Click Assign IP Address (if shown).

Then click Add an A Entry for this Nameserver.

Repeat for both nameservers.

Finally, click Save Changes.

Step 4: Verify DNS Zone

Go to:

WHM

Select:

example.com

Verify the following records exist:

Type Name Value
A ns1 192.0.2.10
A ns2 192.0.2.10 (or second IP)
NS example.com ns1.example.com
NS example.com ns2.example.com

If any record is missing, add it and save the zone.

Step 5: Change the Domain's Nameservers

Return to your domain registrar.

Replace the existing nameservers with:

ns1.example.com
ns2.example.com

Save the changes.

DNS propagation can take anywhere from 15 minutes to 48 hours.

Step 6: Verify the Configuration

From any Linux system, run:

dig NS example.com

Expected output:

example.com. IN NS ns1.example.com.
example.com. IN NS ns2.example.com.

Verify that your nameserver responds:

dig @ns1.example.com example.com

Or use:

nslookup example.com ns1.example.com

You can also verify using online DNS lookup tools after propagation.


Anurag Soam

By Anurag Soam

A skilled Technical Content Writer with an unwavering dedication to covering complex concepts and specializing in writing explicit, concise, and SEO-friendly content for diverse audiences. With a solid background in technology, including SaaS, PaaS, IaaS, Documentation, Cloud, Cybersecurity, and DevOps, he’s an expert in curating content that enhances user experience and facilitates product success. He’s constantly updated on the latest industry trends and tools to deliver qualitative technical content.

View all of Anurag Soam's posts.

Contact Us


Related Tech Guide Posts

We use cookies

By continuing to browse this site, you are agreeing to the use of cookies to enhance your experience.