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

PowerDNS as Secondary DNS

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by Mark Muyskens, Oct 29, 2012.

  1. Mark Muyskens

    Mark Muyskens New Pleskian

    20
     
    Joined:
    Mar 17, 2010
    Messages:
    21
    Likes Received:
    0
    Hello,

    I am looking to use PowerDNS as secondary DNS by adding a Plesk server as a Supermaster. The Supermaster should allow the provisioning of new domains automatically BUT how does it react when suspending a domain? When a domain is suspended in Plesk, I would like for the PowerDNS slave to not respond as well.

    Feedback and suggestions anyone?

    Thanks!
     
  2. Mark Muyskens

    Mark Muyskens New Pleskian

    20
     
    Joined:
    Mar 17, 2010
    Messages:
    21
    Likes Received:
    0
    Had a chance to test it, and it does not appear to suspend the secondary DNS.

    Is there a way to accomplish this?
     
  3. Faris Raouf

    Faris Raouf Silver Pleskian Plesk Guru

    31
    30%
    Joined:
    Mar 15, 2009
    Messages:
    667
    Likes Received:
    17
    There are actually some benefits to retaining the DNS records. Specifically, it allows you to set up a default page that says something like "This site is suspended - contact support".

    We use 4PSA's DNS Manager for DNS. A script running on the Plesk server created a file containing all dns records which the DNS Manager server then retrieves. Suspended domains don't appear in the list.

    A setting in DNS Manager then allows you to decide what to do with domains that are no longer in the list - keep serving the records previously stored, or delete the records.

    There are other ways to set it up too.

    I'm sure you can actually create something similar yourself without too much bother. All you need is a really cheap VPS or two to act as the DNS servers.
    1) Write a little script that dumps DNS records from the Plesk database (or maybe just copy from named's config?) and write them to a file
    2) Write another little script that grabs that file, processed it and creates or updates the necessary records on the VPS.

    (I'm sure there are complications I've not thought of, but that's the basics really).

    Actually, I wonder whether you could just rsync the directory structure, at least for the master DNS server?
    Hmm...

    I'll bet someone's already done this one way or the other.
     
Loading...