Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Nov 2005
    Posts
    64

    Default DNS Zone Template Editor

    Hi,

    I noticed that WHM's Zone Template Editor under DNS Functions seem to have a few variables such as %nameserver%, %rpemail%, %serial, %ttl% and %domain%

    Is there any way to find out what the other variables are? I have looked up the WHM docs for more info but there is nothing written.

    Anyone have any clues?

    A suggestion - perhaps more could be written on this please, as it's a shame to have such a nifty function go to waste due to lack of proper docs.

    Thanks.

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Dec 2004
    Posts
    392

    Default

    hmm... I would also like to know where cpanel stores all those values.

    Maybe try grepping for them in the cpanel directory ?
    UK Managed Hosting
    UK Linux Support
    The information given above is intended to be advice only.

  3. #3
    Member sneader's Avatar
    Join Date
    Aug 2003
    Location
    La Crosse, WI
    Posts
    932
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    For the location of the templates, see:

    http://forums.cpanel.net/showthread.php?t=35661

  4. #4
    Member
    Join Date
    Nov 2005
    Posts
    64

    Default

    That was a very nifty piece of info. Thanks! I'm assuming that there are no more other variables to play with other than those listed in the default Zone Template Editor files at /var/cpanel/zonetemplates

    Is it just my config or does everybody's WHM default Zone Template for the standard config, have the following line?

    www IN CNAME %domain%.

    Shouldn't this be:

    www IN A %ip%

    What is the advantage behind using CNAME instead of A in this case, since I understand this causes a slight delay when accessing a website due to the extra DNS lookup?

  5. #5
    Member sneader's Avatar
    Join Date
    Aug 2003
    Location
    La Crosse, WI
    Posts
    932
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    There is no additional lookup delay, if the CNAME is the same TLD.

    For example, cnn.com uses a CNAME for www.cnn.com to point to cnn.com.

    > www.cnn.com
    Server: xxx
    Address: xxx

    Name: cnn.com
    Addresses: 64.236.16.52, 64.236.16.84, 64.236.16.116, 64.236.24.12
    64.236.24.20, 64.236.24.28, 64.236.29.120, 64.236.16.20
    Aliases: www.cnn.com

    Notice how I queried www.cnn.com and on the SAME lookup it not only told me that www.cnn.com is an alias (CNAME) for cnn.com, it went ahead and told me the IP addresses for cnn.com.

    All in one lookup.

    I can't say whether your way is right or wrong... but if CNN does it this way, it's OK by me so I'm leaving it the way it is.

    - Scott

  6. #6
    Member
    Join Date
    Nov 2005
    Posts
    64

    Default

    Thank you for that piece of info.

    After some finding out, I've discovered that CNN's dns servers may be intelligently figuring out that a CNAME request from a user will usually be followed by an A request hence it decides to send both information in one go, saving an extra lookup otherwise.

    However not all DNS servers do as such.

    Having said that, the drawback apparently for assigning A records instead of CNAMES to subdomains such as www would be consistency. That if an IP address change, one would have to change every other IP address leading to a higher likelihood of error, I'm told.

    Well, I guess you're right, an extra lookup wouldn't really matter then generally.

  7. #7
    Member sneader's Avatar
    Join Date
    Aug 2003
    Location
    La Crosse, WI
    Posts
    932
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I checked and my DNS server (default cPanel installation) responds in the EXACT same way as the CNN server. So, I think the comment is very valid.. there is no extra DNS lookup and no negative reason for the way cPanel has set up the template.

    - Scott

Similar Threads & Tags
Similar threads

  1. So I want to set up Google Apps for my users via Zone Template Editor?
    By ichsie in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-26-2009, 05:03 PM
  2. Zone Template Editor & /etc/remotedomains
    By carverrn in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-14-2008, 10:59 AM
  3. WHM 11 DNS Zone Template Editor
    By RCB I.T. in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-02-2007, 10:04 AM
  4. WHERE'S THE Zone Template Editor DOCS?
    By wantmaker@spider in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-12-2005, 06:58 AM
  5. What is the Zone template editor for?
    By mr.wonderful in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-21-2004, 05:07 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube