Introduction
The Setup
module creates the node configuration file for a new DNS node. Store the Setup
module as a file with the .pm
extension in the /usr/local/cpanel/Cpanel/NameServer/Setup/Remote/
directory, which corresponds to the Cpanel::NameServer::Setup::Remote
namespace.
Note:
You can find additional example modules in the /usr/local/cpanel/Cpanel/NameServer/Setup/Remote/
directory on your cPanel & WHM server.
Each Setup
module corresponds to a server type in the Backend Type menu in WHM's DNS Cluster interface (Home >> Clusters >> DNS Cluster).
- The
get_config()
subroutine generates the interface that displays after users select thatSetup
module's server type and clickConfigure. - The
setup()
subroutine processes the data that the user enters.
Important:
Setup
modules must include both the get_config()
and setup()
subroutines.