1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

HOWTO: Plesk DNS Replication to external Servers

Discussion in 'Plesk 9.x for Linux Suggestions and Feedback' started by Nikos Ioakeim, Mar 17, 2010.

  1. Nikos Ioakeim

    Nikos Ioakeim Guest

    i just want to share this info with you, cause i didnt find anything else similar searching.

    I you have a plesk server with your client on and you want to use instead external dns servers you could you the following script to make this happen. Just follow this instructions:

    1. Setup an basic system. I use openvz and centos templates.
    2. Then install the bind-chroot package using yum (yum install bind-chroot)
    3. Create an ssh rsa key as root on the plesk server using ssh-keygen -t rsa -b 2048, without a pass phrase and copy the contents of /root/.ssh/id_rsa.pub to the dns server under /root/.ssh/authorized_keys
    4.Put the following script anywhere you like, make it executable and put it on cron in order to run every interval you like

    The Script:

    Now every time your client changes his dns records in the specified time interval you used on cron, the plesk server will update all the records changed or deleted on the external name servers.

    I hope this will help some of you. Of course i am looking forward from you to contribute improvements and comments.
  2. Adrian Garcia

    Adrian Garcia New Pleskian

    Apr 20, 2009
    Likes Received:
    I'm using the good old AXFR method with external DNS, I only use rsync to transfer the zone list. This way changes are replicated inmediately and using the native transfer protocol.
  3. Nikos Ioakeim

    Nikos Ioakeim Guest

    I think that this script this is all that it does. The delete command is added when the receiving side for rsync does have more zones than the transmitting one. On any other case only the changes are transfered to the remote dns servers.

    I am sorry but i haven't seen .