• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Second DNS with PowerDNS

freaky@

Regular Pleskian
In case it helps anyone, for the second DNS server we use PowerDNS. I use this _basic_ script to add the entries to the PowerDNS MySQL database. I assume you can figure out how to configure PowerDNS and MySQL on the other server yourself. It should be connectable from plesk.

Within plesk I use event manager to run it. Like so:

Domain alias created lowest (0) nobody /usr/local/scripts/addSecondDNS.php domaliascreate
Domain alias deleted lowest (0) nobody /usr/local/scripts/addSecondDNS.php domaliasdelete
Domain alias updated lowest (0) nobody /usr/local/scripts/addSecondDNS.php domaliasupdate
Domain created lowest (0) nobody /usr/local/scripts/addSecondDNS.php domcreate
Domain deleted lowest (0) nobody /usr/local/scripts/addSecondDNS.php domdelete
Domain updated lowest (0) nobody /usr/local/scripts/addSecondDNS.php domupdate
 

Attachments

  • addSecondDNS.php.txt
    5.8 KB · Views: 123
Forgot to mention the somewhat obvious: configure plesk to allow DNS zone transfers from the PowerDNS server.
 
Back
Top