Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Feb 2004
    Location
    Milan, Italy
    Posts
    4

    Default How to modify the default zone format for DNS

    Hello,

    I want to make some changes to default zone created from WHM when i add a new account. The zone create is like below:

    ; cPanel 8.x
    ; Zone file for testdomain.xx
    @ 14400 IN SOA ns1.dnsfirst.com. stefano.domain.net. (
    2004021000 ; serial, todays date+todays
    28800 ; refresh, seconds
    7200 ; retry, seconds
    3600000 ; expire, seconds
    86400 ) ; minimum, seconds

    testdomain.xx. 14400 IN NS ns1.dnsfirst.com.
    testdomain.xx. 14400 IN NS ns2.dnsfirst.com.
    testdomain.xx. 14400 IN A 66.xx.xx.xx

    localhost.testdomain.xx. 14400 IN A 127.0.0.1

    testdomain.xx. 14400 IN MX 0 testdomain.xx.

    mail 14400 IN CNAME testdomain.xx.
    www 14400 IN CNAME testdomain.xx.
    ftp 14400 IN A 66.xx.xx.xx


    This zone is not complete compliant to new standard of BIND9 even if I setup in the configuration that I use BIND9.

    Also...ndc is an old command used for BIND4 and BIND8, BIND9 uses rndc. It's very boring that all these things are wrong. I've found in /scripts a file called 'adddns'. I've made some changes to it but seems that this script is not direct involved in process of account creation.

    So does anyone can tell me where are right files I've to changed to adjust my system?

    Thanks

    Stefano

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2003
    Posts
    647

    Default

    I'd put in a feature request for the changes to be made, the settings aren't variables (as I think they should be.)

  3. #3
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    Here is a hint.

    Look in /scripts/wwwacct
    Regards,
    David
    Forum Moderator

  4. #4
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    If the wwwacct script is modified, my watchwwwacct script will also be needed.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  5. #5
    Member
    Join Date
    Jan 2003
    Posts
    17

    Default

    I need to find out about it too.

    What's watchwwwacct ? Linking to your site?

  6. #6
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    The wwwacct file is overwritten almost every time cpanel is upgraded, but I did some customizations to the wwwacct script quite a while back and then decided to make a script to monitor it for me.

    The link goes to a thread in dgbaker's forum where he posted my script for others to use. All the script does is compare the wwwacct file to a copy of the custom one and if it has changed it compares it to a copy of the default one. If cpanel only restored the default one, the script will copy back the changes. If cpanel made changes to the script from what it used to be, it'll tell you to redo your customizations.

    It's not linked to my site in any way. It's just something I wrote for myself and decided to share with others.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  7. #7
    Member
    Join Date
    Jan 2003
    Posts
    17

    Default

    Does that link needs sign up to view?

  8. #8
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    You can also see it here.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

Similar Threads & Tags
Similar threads

  1. DNS Zone Default - Always Accept Mail Locally
    By bronco92 in forum E-mail Discussions
    Replies: 1
    Last Post: 02-15-2010, 06:59 AM
  2. allow users to modify dns zone file in cpanel
    By exodux in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-17-2005, 03:07 PM
  3. DNS Zone Record Default Values
    By beekeeper in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 11-04-2003, 09:13 PM
  4. Where does WHM/cPanel get it's default DNS zone setup info from?
    By tutt in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-05-2003, 02:43 PM
  5. DNS Zone SOA Default Values
    By torwill in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-17-2002, 03:50 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube