• 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

Set up non plesk slave dns server

M

Michael Andrews

Guest
I have found the documentation that will allow zone transfers
zone serverbuddies.com {
type slave;
file serverbuddies.com.zone;
masters { 192.168.0.1; };
};

However, you have to go in and manually add that code to that file every time you create a new domain. Is there a way to automate plesk to make it add that to the file every time?
 
He, good luck. Plesk's support sucks, as well as their hosting software. I've used a few in my time and theirs is by far the worst. I ended up scheduling a task that went like this to fix my issue.
Create a bat file that reads your primary and dns server zones like so
dnscmd primaryDnsServerName /enumzones > zones.txt
dnscmd secondaryDnsServerName /enumzones > master.txt

Read those files with your program of choice finding any domains that have been added/removed from comparing the primary to secondary. Use that program to write another batch file with all of the appropriate dns commands
dnscmd secondaryDnsServerName /ZoneAdd domainHere /Secondary primaryDnsIpHere or
dnscmd secondaryDnsServerName /ZoneRefresh domainHere or
dnscmd secondaryDnsServerName /ZoneDelete domainHere

then execute that bat file. Not pretty but it works.
 
Whilst the above seems to be ok for Windows servers - I'm using Linux.

Does anyone know how to setup something like this for Linux?

Perhaps BIND can be configured to notify the slave?
 
Back
Top