I have 2 servers behind nat.
my zone template looks like this:
; cPanel %cpversion%
; Zone file for %domain%
$TTL %ttl%
@ %nsttl% IN SOA %nameserver%. %rpemail%. (
%serial% ; serial, todays date+todays
7200 ; refresh, seconds
7200 ; retry, seconds
2400000 ; 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%.
%nameserverentry%. IN A %nameservera%
%nameserverentry2%. IN A %nameservera2%
%nameserverentry3%. IN A %nameservera3%
%nameserverentry4%. IN A %nameservera4%
%domain%. IN A 123.123.123.123 ( change with your external ip)
localhost.%domain%. IN A 127.0.0.1
%domain%. IN MX 0 %domain%.
%domain%. IN MX 10 %domain%.
mail IN CNAME %domain%.
www IN CNAME %domain%.
ftp IN A 123.123.123.123 ( change with your external ip)
In this matter works for regular domains . check to see if port 53 is open in your firewall router and point to your box
For subdomains to work properly I must create a new cpanel account.
So for example I need subdomain.site.com then I go to whm to the section
"Create new account" and I create a new account with the name of the subdomain I want to.
This is a cpanel issue, because before using cpanel I was using just a linux box with webmin on it and I didn't have any problems. Even the support team from cpanel couldn't help me.
Also editing manualy httpd.conf is not a solution because it gets overwritten by cpanel software now and then and your changes are lost.
Maybe someone has a different idea.



LinkBack URL
About LinkBacks

Reply With Quote




