Non-interactive setup of nameservers

rehmatworks

Registered
Jul 28, 2019
2
1
3
Gilgit
cPanel Access Level
Root Administrator
I've done enough search but couldn't find an answer. Is there an script available natively that we can use to auto-set nameservers? I've used a cloud provider's API to create VPS. cPanel gets installed and I've automated all the stuff. I also want to auto set the nameservers once the server is deployed using cPanel. Can anyone please suggest a solution? I don't want the users to go through the initial nameserver setup screen and want to auto-set the nameservers programatically. Please note that each VPS will have a unique set of it's own nameservers. At registrar part, everything is automated, i.e. nameserver registration, DNS records set up etc., I just want to auto-set the nameservers in WHM. Any help will be appreciated greatly.
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
6,762
535
263
Houston
cPanel Access Level
DataCenter Provider