Here we cover how to set up custom nameservers using PowerDNS as the nameserver daemon on VPS+ servers.
Set Up PowerDNS
IMPORTANT: This solution will require root access, available on VPS and dedicated hosting plans.
- SSH into the relevant server as root
- Run the following to set up PowerDNS
/scripts/setupnameserver powerdns
- Run the following to set up monitoring of PowerDNS in chksrvd which will automatically restart the service in the event of a crash
whmapi1 configureservice service=named enabled=1 monitored=1
EXAMPLE: The output should resemble the belowmetadata:
command: configureservice
reason: Enabled monitoring for named.
result: 1
version: 1 - Confirm the custom nameserver is functioning by running a
dig
against the server's primary IP for a domain on that server
EXAMPLE: Substitute the IP and domain appropriately:dig +short @12.34.56.78 domain.com
- Now that the server can act as a nameserver, you can set up
ns1.domain.com
andns2.domain.com
DNS records that point to IP addresses on the server
NOTE: If the plan is for a domain to use itself as a nameserver, glue records will need to be set up at the domain registrar.
REPLACE: domain.com with a valid domain name associated with the server.
Comments
0 comments
Article is closed for comments.