Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Changing the default settings for DNS zones???

Discussion in 'Bind/DNS/Nameserver' started by techark, Dec 14, 2002.

  1. techark

    techark Well-Known Member

    Joined:
    May 22, 2002
    Messages:
    280
    Likes Received:
    0
    Trophy Points:
    316
    or where you would make the changes?

    What I mean is the things like the format the serial number is in the refresh rate etc is there any way to set those defaults? Cpanel sets the refresh for like 41 days instead of 4 etc.
     
  2. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    193
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    You would have to customize wwwacct in /scripts

    Though if you do your screwed for updates that change this file. We have done our own customizations to wwwacct, but we must always handle cpanel updates manually to this file.

    For example we've add new files to get created, customized the sendmail part for new account setup and also changed the DNS refresh and timeout variables.

    As stated though this causes a lot of extra manual work when changes to system need to be done.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    316
    Location:
    Spain
    Maybe you could use the hooks in wwwacct?

    [quote:0218f114eb]
    ...
    print &wwwacct creation finished\n&;

    if (-e &/scripts/postwwwacct&) {
    system(&/scripts/postwwwacct&,@ARGV);
    }
    if (-e &/scripts/postwwwacctuser&) {
    system(&/scripts/postwwwacctuser&,$user);
    }

    exit;
    [/quote:0218f114eb]

    It might simplify things for you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    193
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    Juanra;

    Where can we find more on this? I did not even know a postwwwacct existed or could be created.

    There are though a few things I don't think that can be done with postwwwacct. Like adding another e-mail address to send to when an account is created, modifing the e-mail etc...

    Thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    316
    Location:
    Spain
    The code snippet above is the last lines of the wwwacct script.

    I asked Nick the following:

    & Are those scripts definable by us, or are they reserved for
    & future use by cpanel?

    and he answered:

    & They are definable by you.

    You call one or another depending on what you need. @ARGV contains the arguments of wwwacct itself, and $user is just the username. Here's an example:

    http://html.conclase.net/cp/scripts/deflang.txt

    [b:96c4932c6c]You have to be very careful because these scripts run as root![/b:96c4932c6c]

    It would be great if there were similar hooks for subdomain creation.

    As for techark's question, this would help on new accounts, but I don't think so for parked domains (not sure though). It think it would be better if DNS default values could be customized from WHM.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,574
    Likes Received:
    3
    Trophy Points:
    193
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    [quote:ce0241b3b1][i:ce0241b3b1]Originally posted by Juanra[/i:ce0241b3b1]

    The code snippet above is the last lines of the wwwacct script.

    I asked Nick the following:

    & Are those scripts definable by us, or are they reserved for
    & future use by cpanel?

    and he answered:

    & They are definable by you.

    You call one or another depending on what you need. @ARGV contains the arguments of wwwacct itself, and $user is just the username. Here's an example:

    http://html.conclase.net/cp/scripts/deflang.txt

    [b:ce0241b3b1]You have to be very careful because these scripts run as root![/b:ce0241b3b1]

    It would be great if there were similar hooks for subdomain creation.

    As for techark's question, this would help on new accounts, but I don't think so for parked domains (not sure though). It think it would be better if DNS default values could be customized from WHM.[/quote:ce0241b3b1]

    Thanks Juanra, yes I do agree that it would be better for the default DNS settings to be customizable. Along with the default mail message that gets sent when an Account is created.

    We've customized ours to the point that when we create an account and receive the e-mail it can then be forwarded directly to the new user with all pertanant info already in there.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. ThunderHostingDotCom

    ThunderHostingDotCom Well-Known Member

    Joined:
    Nov 18, 2002
    Messages:
    449
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    All over!
    [quote:aec0dd04ef][i:aec0dd04ef]Originally posted by dgbaker[/i:aec0dd04ef]
    A default account email gets sent to the server owner and the customer when an Account is created.
    [/quote:aec0dd04ef]


    Does anyone know if this has been put in as a future request?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    316
    Location:
    Spain
    http://web.cpanel.net/bugzilla/show_bug.cgi?id=332
    http://web.cpanel.net/bugzilla/show_bug.cgi?id=356
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice