Non-interactive setup of nameservers
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.
-
Hi @rehmatworks There is no script that will do this automatically but you could use the WHM API1 to write something using the following: WHM API 1 Functions - update_nameservers_config - Developer Documentation - cPanel Documentation You might also want to check out the documentation on customizing your installation here: 0 -
Thank you so much. Using a /etc/wwwacct.conf configuration file seems to be the solution I'm looking for :) I'll give this a try. 0
Please sign in to leave a comment.
Comments
2 comments