Before you begin, ensure you have:
Example:
You'll create:
Access WHM as the root user.
https://your-server-ip:2087
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.
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.
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.
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.