Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 19
  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    18

    Unhappy DNS Zone Templates problem

    Hello,

    I go to

    Main >> DNS Functions >> Edit Zone Templates

    and add a TXT entry

    %domain%. IN TXT "v=spf1 a mx -all"

    but when I "Create a New Account" the DNS Zone created for that new domain don't show me the changes I made in the templates!!

    Where are the REAL templates used for Cpanel? I look in /var/cpanel/zonetemplates/ and find the simple, standard and standardvirtualftp templates with my changes but seems like cpanel don't use them.

    I have a WHM 10.8.0 cPanel 10.9.0-R37 Fedora i686 - WHM X v3.1.0 and I restarted the named service and cpanel service with no luck.


    Thanks in advance for your help.

  2. #2
    Member
    Join Date
    Jul 2005
    Location
    Belgium
    Posts
    78

    Default

    looks like you tryed to add a SPF record it's not a good idea to automate that add it for each domain seperatly some clients might not like SPF

  3. #3
    Registered User
    Join Date
    Oct 2003
    Posts
    18

    Default

    Well, yes I want to add that SPF record in every new account DNS zone, and I hope to fix some email issues with servers which implement SPF validation like hotmail.com do. And I'll configure the email clients to use the correct SMTP server for sending emails and pass the SPF validation in the MTAs with SPF enabled.

    Anyway I am confused with this template issue. Why don't show me my templates modification in the new DNS zone? Is Cpanel using other templates?

  4. #4
    Member
    Join Date
    Jan 2006
    Posts
    142

    Default

    Yes, this is realy a problem...

    I found templates located here:
    /var/cpanel/zonetemplates

    and here:
    /usr/local/cpanel/etc/zonetemplates

    but cpanel just don't use them Can someone please explain this...

  5. #5
    Member ajaydsouza's Avatar
    Join Date
    Apr 2006
    Posts
    35

    Default

    This is the same problem I am facing. I customized my zonetemplates as well, but the New Accounts don't get created with these templates.

  6. #6
    Member
    Join Date
    Jun 2003
    Location
    Bharat
    Posts
    230

    Default

    I have the same settings, changed entries at /var/cpanel/zonetemplates/ as per my liking on all of my servers and they seems to be working perfectly.

    Are you people creating new acounts as root or you have made yourself a reseller for yourself, if so have you used Edit Zone Templates from within that reseller account's WHM?
    Vinayak Sharma
    Vinsar.Net - Quality WebHosting Services at Economical Price USA & UK Servers
    Book Your Domain with Confidence Reliable Domain Reseller Account

  7. #7
    Member
    Join Date
    Jan 2006
    Posts
    142

    Default

    I am creating new accounts as root, and I tried to edit zone files from WHM and from shell, as I mentioned but cPanel is totaly ignoring those changes. I think that those templates that we are changing are only used for addon domains, but I can't find nowhere tamplates that cPanel is using for new accounts, so weird...

    @Vinsar
    Are you creating new accounts as a root or reseller?

  8. #8
    Member
    Join Date
    Jun 2003
    Location
    Bharat
    Posts
    230

    Default

    I have checked it both ways and its working.

    I have one of my own Brand under me as reseller so when an account is created form there it gets all the values populated properly.

    And when I create a new account as root again gets all the values populated properly.

    On my server there are only three files at

    /var/cpanel/zonetemplates/ and those are simple, standard & standardvirtualftp

    no subfolders etc.

    BTW I edited the files from shell only.
    Vinayak Sharma
    Vinsar.Net - Quality WebHosting Services at Economical Price USA & UK Servers
    Book Your Domain with Confidence Reliable Domain Reseller Account

  9. #9
    Member
    Join Date
    Jan 2006
    Posts
    142

    Default

    I realy don't understand this. I have the same problem on five servers, and cPanel just ignores changes in those template files.

    Did you maybe restarted server or cPanel or something else... after those changes?

  10. #10
    Member
    Join Date
    Jun 2003
    Location
    Bharat
    Posts
    230

    Default

    I am not sure, but maybe I started bind.

    You can try it.
    Vinayak Sharma
    Vinsar.Net - Quality WebHosting Services at Economical Price USA & UK Servers
    Book Your Domain with Confidence Reliable Domain Reseller Account

  11. #11
    Member
    Join Date
    Dec 2006
    Posts
    7

    Question It does not work!

    I can not apply my new zone template too...
    Please fix it. Thank you!

  12. #12
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Tested this on 11.4.2-CURRENT_13519

    Edit Zone Templates
    Selected "standardvirtualftp - used for creating a the default zone on a new account with a virtual ftp ip"
    Added the SPF record as shown in the first entry in this thread
    Saved the template
    Created a new user.
    Checked /var/named:
    ; Zone file for spf.me
    $TTL 14400
    @ 86400 IN SOA mundane.cpqa.internal. cpanelqa.cpanel.net. (
    2007060801 ; serial, todays date+todays
    86400 ; refresh, seconds
    7200 ; retry, seconds
    3600000 ; expire, seconds
    86400 ) ; minimum, seconds

    spf.me. 86400 IN NS mundane.cpqa.internal.
    spf.me. 86400 IN NS mundane.cpqa.internal.
    spf.me. 86400 IN NS mundane.cpqa.internal.
    spf.me. 86400 IN NS mundane.cpqa.internal.


    spf.me. IN A 192.168.90.21

    localhost.spf.me. IN A 127.0.0.1

    spf.me. IN MX 0 spf.me.

    mail IN CNAME spf.me.
    www IN CNAME spf.me.
    ftp IN A 192.168.90.21

    spf.me. IN TXT "v=spf1 a mx -all"



    The "standard" template is used when an account has a dedicated IP. The standardvirtualftp template is used for all shared IP accounts.

  13. #13
    Member
    Join Date
    Nov 2003
    Posts
    11

    Default

    Quote Originally Posted by cpanelkenneth View Post
    Tested this on 11.4.2-CURRENT_13519

    Edit Zone Templates
    Selected "standardvirtualftp - used for creating a the default zone on a new account with a virtual ftp ip"

    The "standard" template is used when an account has a dedicated IP. The standardvirtualftp template is used for all shared IP accounts.

    THANK YOU! This is what I have been looking for for some time now

  14. #14
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jan 2006
    Posts
    640

    Default

    We have changed all three zone templates on all our servers, simply changing the default MX record but the templates are ignored across all 30 servers!

  15. #15
    Member
    Join Date
    Jun 2003
    Location
    Bharat
    Posts
    230

    Default

    Quote Originally Posted by 4u123 View Post
    We have changed all three zone templates on all our servers, simply changing the default MX record but the templates are ignored across all 30 servers!
    Where did you did that, through WHM or at specified directories?

    Are you creating hosted account as root or as reseller?

    Have you restarted bind?

    Changing template will not change the zone records of existing accounts, changes will be applied to new account creation.
    Vinayak Sharma
    Vinsar.Net - Quality WebHosting Services at Economical Price USA & UK Servers
    Book Your Domain with Confidence Reliable Domain Reseller Account

Similar Threads & Tags
Similar threads

  1. DNS Zone Templates
    By ChrisFirth in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-06-2009, 04:08 PM
  2. Adding DNS Zone Templates
    By infinitymedia in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-15-2007, 06:55 PM
  3. DNS Zone Templates for SPF records
    By mrgold in forum New User Questions
    Replies: 9
    Last Post: 10-27-2006, 01:47 AM
  4. Dns zone templates for resellers
    By remik in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-09-2005, 12:56 PM
  5. DNS Zone Templates
    By Stevez in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-06-2004, 02:19 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube