Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    May 2002
    Posts
    292

    Default Changing the default settings for DNS zones???

    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. #2
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    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.
    Regards,
    David
    Forum Moderator

  3. #3
    Member
    Join Date
    Sep 2001
    Location
    Spain
    Posts
    779

    Default

    Maybe you could use the hooks in wwwacct?

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

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

    exit;
    [/quote:0218f114eb]

    It might simplify things for you.

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

    Default

    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
    Regards,
    David
    Forum Moderator

  5. #5
    Member
    Join Date
    Sep 2001
    Location
    Spain
    Posts
    779

    Default

    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.

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

    Default

    [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.
    Regards,
    David
    Forum Moderator

  7. #7
    Member
    Join Date
    Nov 2002
    Location
    All over!
    Posts
    452

    Default

    [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?
    Knowledge is Power!

  8. #8
    Member
    Join Date
    Sep 2001
    Location
    Spain
    Posts
    779

    Default

    http://web.cpanel.net/bugzilla/show_bug.cgi?id=332
    http://web.cpanel.net/bugzilla/show_bug.cgi?id=356

Similar Threads & Tags
Similar threads

  1. Changing Premission Settings
    By Tony S. in forum New User Questions
    Replies: 7
    Last Post: 09-12-2009, 11:21 AM
  2. Changing the NS records for multiple zones
    By movielad in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-01-2009, 01:16 AM
  3. How do I merge DNS zones and a few other DNS issues?
    By Mac Write in forum New User Questions
    Replies: 0
    Last Post: 05-07-2006, 07:01 PM
  4. Cluster DNS issue: remove redundant dns zones?
    By gundamz in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-27-2005, 01:37 PM
  5. Edit a DNS Zones shows no zones
    By bambenek in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-01-2002, 10:14 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube