Hi.
I have a bug problem and I'm wondering if someone can assist me on fixing this.
Some times named stops do to an error. Now when I try to start named I get this.
Starting named:
Error in named configuration:
zone localhost.localdomain/IN: loaded serial 0
zone localhost/IN: loaded serial 0
zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
zone 0.in-addr.arpa/IN: loaded serial 0
zone pns1.cloudns.net/IN: loaded serial 2013071600
zone pns2.cloudns.net/IN: loaded serial 2013071600
zone ns1.centos-webpanel.com/IN: loaded serial 2013071600
zone ns2.centos-webpanel.com/IN: loaded serial 2013071600
dns_rdata_fromtext: /var/named/mydomain1.is.db:12: near '.': extra input text
zone mydomain1.is/IN: loading from master file /var/named/mydomain1.is.db failed: extra input text
zone mydomain1.is/IN: not loaded due to errors.
_default/mydomain1.is/IN: extra input text
dns_rdata_fromtext: /var/named/mydomain2.is.db:12: near '.': extra input text
zone mydomain2.is/IN: loading from master file /var/named/mydomain2.is.db failed: extra input text
zone mydomain2.is/IN: not loaded due to errors.
_default/mydomain2.is/IN: extra input text
dns_rdata_fromtext: /var/named/10.1.168.192.in-addr.arpa.db:12: near '.': extra input text
zone 10.1.168.192.in-addr.arpa/IN: loading from master file /var/named/10.1.168.192.in-addr.arpa.db failed: extra input text
zone 10.1.168.192.in-addr.arpa/IN: not loaded due to errors.
_default/10.1.168.192.in-addr.arpa/IN: extra input text
dns_rdata_fromtext: /var/named/mydomain3.is.db:12: near '.': extra input text
zone mydomain3.is/IN: loading from master file /var/named/mydomain3.is.db failed: extra input text
zone mydomain3.is/IN: not loaded due to errors.
_default/mydomain3.is/IN: extra input text
[FAILED]
I find this so strange. The extra input text is this ( . ) the dot.
Now I open the file nano /var/named/10.1.168.192.in-addr.arpa.db
And I see that the . at the 10.1.168.192.in-addr.arpa. 86400 IN NS pns2.cloudns.net . <----- is not at the right place.
What I did was move the . closer to .net like this 10.1.168.192.in-addr.arpa. 86400 IN NS pns2.cloudns.net . <-----
Here is the file.
; Panel %version%
; Zone file for 10.1.168.192.in-addr.arpa
$TTL 14400
10.1.168.192.in-addr.arpa. 86400 IN SOA pns1.cloudns.net. adolfbragi.gmail.com. (
2013071600 ; serial, todays date+todays
86400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds
10.1.168.192.in-addr.arpa. 86400 IN NS pns1.cloudns.net.
10.1.168.192.in-addr.arpa. 86400 IN NS pns2.cloudns.net .<-----
10.1.168.192.in-addr.arpa. IN A 212.30.216.179
localhost.10.1.168.192.in-addr.arpa. IN A 127.0.0.1
10.1.168.192.in-addr.arpa. IN MX 0 10.1.168.192.in-addr.arpa.
mail IN CNAME 10.1.168.192.in-addr.arpa.
www IN CNAME 10.1.168.192.in-addr.arpa.
ftp IN CNAME 10.1.168.192.in-addr.arpa.
; Add additional settings below this line
This happens to all my .db file that the CWP creates at first all is working fine and later on I have to start named again.
can some one please explain why CWP named is doing this.
Here is another .db file.
nano /var/named/mydomain1.is.db
; Panel %version%
; Zone file for mydomain1.is
$TTL 14400
mydomain1.is. 86400 IN SOA pns1.cloudns.net. gmail.gmail.com. (
2013071600 ; serial, todays date+todays
86400 ; refresh, seconds
7200 ; retry, seconds
3600000 ; expire, seconds
86400 ) ; minimum, seconds
mydomain1.is. 86400 IN NS pns1.cloudns.net.
mydomain1.is. 86400 IN NS pns2.cloudns.net . <-----
mydomain1.is. IN A 212.30.216.179
localhost.mydomain1.is. IN A 127.0.0.1
mydomain1.is. IN MX 0 mydomain1.is.
mail IN CNAME mydomain1.is.
www IN CNAME mydomain1.is.
ftp IN CNAME mydomain1.is.
; Add additional settings below this line
As I told you before all my .db files are like this. I have to move the . to fix this.
Can someone assist me on this.
Best regards.