Subdomains/Addon Domains Not Resolving

wmoore025

Active Member
Jul 3, 2005
36
0
156
Hello,

I recently moved from a VPS to a Dedicated. This involved moving data from ThePlanet to Suberb.

Anyway

All regular sites are working fine, but all subdomain/addon domains are not working. It has been over 72 hours, its been close to a week!

For Example top Domain for a client is legendoffracon.com

Sub Domain

Vyndication

site vyndication.com

Used the Addon in Cpanel, even deleted and redid same. The subdomain vyndication.legendoffracon.com failes and vyndication.com failes


dns report

http://dnsreport.com/tools/dnsreport.ch?domain=vyndication.com

Alot of failes

Top Domain

http://dnsreport.com/tools/dnsreport.ch?domain=legendofdracon.com


Comes out fine

Please Help!

Thanks In advance!
 

aby

Well-Known Member
May 31, 2005
638
0
166
India
wmoore025 said:
Hello,

I recently moved from a VPS to a Dedicated. This involved moving data from ThePlanet to Suberb.

Anyway

All regular sites are working fine, but all subdomain/addon domains are not working. It has been over 72 hours, its been close to a week!

For Example top Domain for a client is legendoffracon.com

Sub Domain

Vyndication

site vyndication.com

Used the Addon in Cpanel, even deleted and redid same. The subdomain vyndication.legendoffracon.com failes and vyndication.com failes


dns report

http://dnsreport.com/tools/dnsreport.ch?domain=vyndication.com

Alot of failes

Top Domain

http://dnsreport.com/tools/dnsreport.ch?domain=legendofdracon.com


Comes out fine

Please Help!

Thanks In advance!

Is it resolving fine from inside your server?
 

wmoore025

Active Member
Jul 3, 2005
36
0
156
ok I checked httpd.conf all looks ok below is the top main domain and I listed one of the subdomains of the main domain below
 

Attachments

  • 875.9 KB Views: 37
  • 634.6 KB Views: 21

wmoore025

Active Member
Jul 3, 2005
36
0
156
figured it out.. its adding the templates wrong for Subdmains/Addon Domains

alot of IN and SOA and ) in the fields

I went in and manually corrected it, is there a way to fix the template for addon/subdomains>>>
 

wmoore025

Active Member
Jul 3, 2005
36
0
156
i know it has something to do with the template. Every account that is created or Addon DOmain Added, the DNS part is all messed up. With ), (, and other things in the text field. Any Idea on how to correct?

Thanks!
 

flashweb

Well-Known Member
Mar 13, 2003
255
2
168
cPanel Access Level
Root Administrator
Can you copy the ooutput of following commands ?

cat /var/cpanel/zonetemplates/standard
cat /var/cpanel/zonetemplates/simple

For me it is

[[email protected] zonetemplates]# cat /var/cpanel/zonetemplates/standard
; cPanel %cpversion%
; Zone file for %domain%
$TTL %ttl%
@ IN SOA %nameserver%. %rpemail%. (
%serial% ; serial, todays date+todays
14400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds

%domain%. IN NS %nameserver%.
%domain%. IN NS %nameserver2%.
%domain%. IN NS %nameserver3%.
%domain%. IN NS %nameserver4%.

%domain%. IN A %ip%

localhost.%domain%. IN A 127.0.0.1

%domain%. IN MX 0 %domain%.

mail IN CNAME %domain%.
www IN CNAME %domain%.
ftp IN CNAME %domain%.

[[email protected] zonetemplates]# cat /var/cpanel/zonetemplates/simple
; cPanel %cpversion%
; Zone file for %domain%
$TTL %ttl%
@ IN SOA %nameserver%. %rpemail%. (
%serial% ; serial, todays date+todays
14400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds

%domain%. IN NS %nameserver%.
%domain%. IN NS %nameserver2%.
%domain%. IN NS %nameserver3%.
%domain%. IN NS %nameserver4%.

%domain%. IN A %ip%

localhost.%domain%. IN A 127.0.0.1

%domain%. IN MX 0 %domain%.
[[email protected] zonetemplates]#
 

wmoore025

Active Member
Jul 3, 2005
36
0
156
ok

Simple

; cPanel %cpversion%
; Zone file for %domain%
$TTL %ttl%
@ %nsttl% IN SOA %nameserver%. %rpemail%. (
%serial% ; serial, todays date+todays
86400 ; refresh, seconds
7200 ; retry, seconds
1209600 ; expire, seconds
7200 ) ; minimum, seconds

%domain%. %nsttl% IN NS %nameserver%.
%domain%. %nsttl% IN NS %nameserver2%.
%domain%. %nsttl% IN NS %nameserver3%.
%domain%. %nsttl% IN NS %nameserver4%.

%domain%. IN A %ip%

localhost.%domain%. IN A 127.0.0.1

%domain%. IN MX 0 %domain%.



Standard

; cPanel %cpversion%
; Zone file for %domain%
$TTL %ttl%
@ %nsttl% IN SOA %nameserver%. %rpemail%. (
%serial% ; serial, todays date+todays
86400 ; refresh, seconds
7200 ; retry, seconds
1209600 ; expire, seconds
7200 ) ; minimum, seconds

%domain%. %nsttl% IN NS %nameserver%.
%domain%. %nsttl% IN NS %nameserver2%.
%domain%. %nsttl% IN NS %nameserver3%.
%domain%. %nsttl% IN NS %nameserver4%.

%domain%. IN A %ip%

localhost.%domain%. IN A 127.0.0.1

%domain%. IN MX 0 %domain%.

mail IN CNAME %domain%.
www IN CNAME %domain%.
ftp IN CNAME %domain%.
 

wmoore025

Active Member
Jul 3, 2005
36
0
156
wuill when get home. when have access to shell..

but it does this for all subdomains that are added. I have to manually correct
 

jrs123

Registered
Dec 17, 2004
1
0
151
I'm pretty sure this is a bug. I've had a vps customer with the same problem, and I was able to reproduce it on a fairly new test machine we have.

Versions:
WHM 10.8.0 cPanel 10.8.0-R88
CentOS 4.2 i686 - WHM X v3.1.0

and I've run upcp --force

Code:
[email protected] [/var/named]# cat /var/cpanel/zonetemplates/standard
; cPanel %cpversion%
; Zone file for %domain%
$TTL %ttl%
@      %nsttl%  IN      SOA     %nameserver%. %rpemail%. (
                %serial%        ; serial, todays date+todays
                86400           ; refresh, seconds
                7200            ; retry, seconds
                3600000         ; expire, seconds
                86400 )         ; minimum, seconds

%domain%. %nsttl% IN NS %nameserver%.
%domain%. %nsttl% IN NS %nameserver2%.
%domain%. %nsttl% IN NS %nameserver3%.
%domain%. %nsttl% IN NS %nameserver4%.

%domain%. IN A %ip%

localhost.%domain%. IN A 127.0.0.1

%domain%. IN MX 0 %domain%.

mail IN CNAME %domain%.
www IN CNAME %domain%.
ftp IN CNAME %domain%.
Code:
[email protected] [/var/named]# cat addontest.com.db
; cPanel 10
; Zone file for addontest.com
$TTL 86400
@      root     IN      SOA     dns1.whplex.com. root.s1.whplex.com. (
                2005110101      ; serial, todays date+todays
                86400           ; refresh, seconds
                7200            ; retry, seconds
                3600000         ; expire, seconds
                86400 )         ; minimum, seconds

addontest.com. root IN NS dns1.whplex.com.
addontest.com. root IN NS dns2.whplex.com.

addontest.com. IN A 204.92.120.2

localhost.addontest.com. IN A 127.0.0.1

addontest.com. IN MX 0 addontest.com.

mail IN CNAME addontest.com.
www IN CNAME addontest.com.
ftp IN CNAME addontest.com.
It just effects addons though. The zone created through the Create Account function works fine:

Code:
[email protected] [/var/named]# cat hptest.com.db
; cPanel 10
; Zone file for hptest.com
$TTL 14400
@      86400    IN      SOA     dns1.whplex.com. root.s1.whplex.com. ( 2005110108       ; serial, todays date+todays
                86400           ; refresh, seconds
                7200            ; retry, seconds
                3600000         ; expire, seconds
                86400 )         ; minimum, seconds

hptest.com. 86400 IN NS dns1.whplex.com.
hptest.com. 86400 IN NS dns2.whplex.com.

hptest.com. IN A 204.92.120.2

localhost.hptest.com. IN A 127.0.0.1

hptest.com. IN MX 0 hptest.com.

mail IN CNAME hptest.com.
www IN CNAME hptest.com.
ftp IN A 204.92.120.2
addontest 14400 IN A  204.92.120.2
www.addontest 14400 IN A  204.92.120.2

It looks to me like it's filling in %nsttl% with the reseller's username instead of the time to live (on the vps 'root' in the broken zonefile was a reseller's username). I fixed it temporarily by changing %nsttl% to %ttl% in the zonetemplate files (Disclaimer: I didn't test this extensively but it worked for me).
 

wmoore025

Active Member
Jul 3, 2005
36
0
156
ok thankyou

waiting on confirmation from Provider on this, they are checking for me too
 

Zaf

Well-Known Member
Aug 22, 2005
117
0
166
If you are getting (, ) etc in the text fields, it is most probably a problem of your .db file having spaces instead of tabs. Atleast thats what I found in one zone file which was showing similar problem. I just replaced multiple spaces with a tab character and then changed the serial before I saved the .db file. Now when I open it in WHM its all fine..just need to reload the zones and thats it.
hth