So i had about 100 domain names to add... so i figured instead of doing it through whm id do it with a bash script...
so i added this for each domain to /etc/named.conf
zone "domainname.com" {
type master;
file "/var/named/domainname.db";
};
and inside of /var/named/
i had my bash script create a domainname.com.db for each domain.
containing this:
; my bashscript zone builder
; Zone file for domainname.com
$TTL 14400
@ IN SOA ns3.ourhosting. root.servername.ourhosting. (
2004111601 ; serial, todays date+todays
14400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds
domainname.com. IN NS ns3.ourhostingcompany.
domainname.com. IN NS ns4.ourhostingcompany.
domainname.com. IN A theipnumberhere
localhost.domainname.com. IN A 127.0.0.1
domainname.com.com. IN MX 0 domainname.com.
mail IN CNAME domainname.com.
www IN CNAME domainname.com.
ftp IN CNAME domainname.com.
That seemed to work.. however when looking at /var/log/messages i see alot of lame server error mesgs...
but each one of these domains seems to resolve from the ns3 server.
then i went to WHM and tried syncing all the records.. so it would sync the newly added records to the ns4 server.
however the page just goes white.. and never says syncing finished.. and nothing is added to the ns4 server when i checked.
What am I doing wrong here? Is there another file that needs to be modified?
Please help.
so i added this for each domain to /etc/named.conf
zone "domainname.com" {
type master;
file "/var/named/domainname.db";
};
and inside of /var/named/
i had my bash script create a domainname.com.db for each domain.
containing this:
; my bashscript zone builder
; Zone file for domainname.com
$TTL 14400
@ IN SOA ns3.ourhosting. root.servername.ourhosting. (
2004111601 ; serial, todays date+todays
14400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds
domainname.com. IN NS ns3.ourhostingcompany.
domainname.com. IN NS ns4.ourhostingcompany.
domainname.com. IN A theipnumberhere
localhost.domainname.com. IN A 127.0.0.1
domainname.com.com. IN MX 0 domainname.com.
mail IN CNAME domainname.com.
www IN CNAME domainname.com.
ftp IN CNAME domainname.com.
That seemed to work.. however when looking at /var/log/messages i see alot of lame server error mesgs...
but each one of these domains seems to resolve from the ns3 server.
then i went to WHM and tried syncing all the records.. so it would sync the newly added records to the ns4 server.
however the page just goes white.. and never says syncing finished.. and nothing is added to the ns4 server when i checked.
What am I doing wrong here? Is there another file that needs to be modified?
Please help.