The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to modify the default zone format for DNS

Discussion in 'Bind / DNS / Nameserver Issues' started by scislaghi, Feb 10, 2004.

  1. scislaghi

    scislaghi Registered

    Joined:
    Feb 8, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Milan, Italy
    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. nickn

    nickn Well-Known Member
    PartnerNOC

    Joined:
    Jun 15, 2003
    Messages:
    619
    Likes Received:
    1
    Trophy Points:
    18
    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. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Here is a hint.

    Look in /scripts/wwwacct ;)
     
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    If the wwwacct script is modified, my watchwwwacct script will also be needed. ;)
     
  5. Wako

    Wako Member

    Joined:
    Jan 1, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    I need to find out about it too.

    What's watchwwwacct ? Linking to your site?
     
  6. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    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.
     
  7. Wako

    Wako Member

    Joined:
    Jan 1, 2003
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Does that link needs sign up to view?
     
  8. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    You can also see it here.
     
Loading...

Share This Page