Multiple VPS Nameservers question

Bogddan

Registered
May 26, 2020
1
0
1
Bucharest
cPanel Access Level
Root Administrator
Hey. So currently I have one VPS with 2 nameservers (ns1.example.com and ns2.example.com) both of these nameservers are pointing to the VPS ip.
If I want to buy multiple VPS, what should I do?
ns1.example.com pointing to VPS1
ns2.example.com pointing to VPS2
ns3.example.com pointing to VPS3
and so on? I only have 8 nameserver slolts available.
What if I have 10+? What should I do?
Can I use Cloudflare for this? If yes, how?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston
You can create as many nameservers as you'd like. If the additional VPS servers aren't clustered you wouldn't put their nameservers in the "nameserver slots" you're referencing. You'd just add an A record in the domain's DNS zone file where DNS is hosted for the root domain that points to the NS's IP address.

For Example:
  • In WHM>>Server Configuration>>Basic WebHost Manager Setup
    • On VPS1
      • ns1.example.com
      • ns2.example.com
    • On VPS2
      • ns3.example.com
      • ns4.example.com
    • On VPS3
      • ns5.example.com
      • ns6.example.com
    • And so one
  • On the server where DNS for example.com is hosted:
    • A records:
      • ns1.example.com
      • ns2.example.com
        • A record points to VPS1 for both
      • ns3.example.com - A Record points to VPS2
      • ns4.example.com - A record points to VPS2
        • A record points to VPS1 for both
      • ns5.example.com - A record points to VPS3
      • ns6.example.com - A record points to VPS3
        • A record points to VPS1 for both