Unverified Commit 4535450c authored by MegaS0ra's avatar MegaS0ra Committed by GitHub
Browse files

Add DirectAdmin compatibility

parent a0e473a0
# OwnSlaveDNS-forPlesk
Helps to retrieve DNS zones from a Plesk server to a secondary DNS server (bind)
# OwnSlaveDNS-forPleskOrDA
Helps to retrieve DNS zones from a Plesk or DirectAdmin server to a secondary DNS server (bind)
Requirements on slave server :
- Bind (named ; named-chroot...)
- MySQL client
- Add option "allow-new-zones yes;" in /etc/named.conf
On the master server, add a SQL user, which will only be able to show the domains :
Requirements on master server :
- Allow SQL connection from slave (for Plesk)
- Allow SSH connection from slave (for DirectAdmin)
For Plesk, on the master server, add a SQL user, which will only be able to show the domains :
````sql
CREATE USER 'dns'@'%' identified by 'SomeRandomPasswordYouChoose';
GRANT USAGE ON *.* TO 'dns'@'%' with MAX_QUERIES_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_USER_CONNECTIONS 0;
......@@ -29,6 +33,8 @@ You can also do this from command line :
/usr/local/psa/bin/server_dns -u -add-acl IP.IP.IP.IP
````
On a DirectAdmin server, you must add the IP in the "allow-transfer" setion of the /etc/named.conf file.
You can then download the script on the slave server :
````bash
cd /opt/ && wget https://raw.githubusercontent.com/MegaS0ra/OwnSlaveDNS-forPlesk/master/slave-retrieve.sh && chmod +x slave-retrieve.sh
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment