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

named.conf template modification

Discussion in 'Plesk for Linux - 8.x and Older' started by MattElmore, Sep 14, 2005.

  1. MattElmore

    MattElmore Guest

    0
     
    Running Plesk 7.5.4 on FreeBSD 5.3.

    Was wondering if there was a way to add an 'also-notify' directive for each domain created in named.conf.

    I.E., I want the named.conf to look like this for each zone entry:

    Code:
    zone "somedomain.com" {
            type master;
            file "somedomain.com";
            allow-transfer {
                    1.2.3.4;
                    5.6.7.8;
                    common-allow-transfer;
            };
            also-notify { 5.6.7.8; 1.2.3.4; };
    };
    
    Let me know if this is possible.

    Thanks!
     
  2. hardweb

    hardweb Guest

    0
     
    Sorry to dissapoint you, but this is not possible.
     
  3. MattElmore

    MattElmore Guest

    0
     
    That's what I feared!

    In the meantime, I have devised a workaround. Thank you for the reply.
     
  4. jamesyeeoc

    jamesyeeoc Guest

    0
     
    Yeah, not by the control panel. Manual editing or a custom script to parse and re-add the lines. Script can either be put in cron, or in Event Manager to be triggered anytime a domain is created/updated.
     
  5. MattElmore

    MattElmore Guest

    0
     
    Using Event Manager is an excellent idea. If nothing else to send a reminder to have someone do it manually.

    Thanks for the tip!
     
Loading...