#1 (permalink)  
Old 02-15-2007, 10:30 AM
Registered User
 
Join Date: Oct 2003
Posts: 18
karlos
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-15-2007, 10:41 AM
Registered User
 
Join Date: Jul 2005
Location: Belgium
Posts: 78
cpanllover is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-15-2007, 11:44 AM
Registered User
 
Join Date: Oct 2003
Posts: 18
karlos
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-11-2007, 02:25 AM
Registered User
 
Join Date: Jan 2006
Posts: 106
dexus is on a distinguished road
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...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-11-2007, 05:35 AM
ajaydsouza's Avatar
Registered User
 
Join Date: Apr 2006
Posts: 35
ajaydsouza is on a distinguished road
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.
__________________
Ajay D'Souza
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-15-2007, 05:37 AM
Registered User
 
Join Date: Jun 2003
Location: Bharat
Posts: 182
Vinsar
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 Resell Domains
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-17-2007, 10:49 AM
Registered User
 
Join Date: Jan 2006
Posts: 106
dexus is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-17-2007, 11:03 AM
Registered User
 
Join Date: Jun 2003
Location: Bharat
Posts: 182
Vinsar
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 Resell Domains
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-17-2007, 02:42 PM
Registered User
 
Join Date: Jan 2006
Posts: 106
dexus is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-17-2007, 03:40 PM
Registered User
 
Join Date: Jun 2003
Location: Bharat
Posts: 182
Vinsar
I am not sure, but maybe I started bind.

You can try it.
__________________
Vinayak Sharma
Vinsar.Net Resell Domains
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 06-08-2007, 08:41 AM
Registered User
 
Join Date: Dec 2006
Posts: 7
CPanel_user1 is on a distinguished road
Question It does not work!

I can not apply my new zone template too...
Please fix it. Thank you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 06-08-2007, 10:34 AM
cpanelkenneth's Avatar
cPanel Quality Assurance
 
Join Date: Apr 2006
Posts: 3,222
cpanelkenneth is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 07-26-2007, 12:59 PM
Registered User
 
Join Date: Nov 2003
Posts: 5
thurmma
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 02-21-2008, 08:55 AM
Registered User
 
Join Date: Jan 2006
Posts: 579
4u123 is on a distinguished road
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 02-21-2008, 09:10 AM
Registered User
 
Join Date: Jun 2003
Location: Bharat
Posts: 182
Vinsar
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 Resell Domains
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:57 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc