Error when start named

Rodrigo Faria Tavares rodrigofariat at yahoo.com.br
Sun Jun 26 13:16:00 UTC 2011


Hello,

I commented the lines in my named.conf
/zone "." IN {
//      type hint;
//      file "/var/named/named.ca";
//};

So the named not come more this error, but bind is not ok.

When I tryed to run named, come many messages about bind files not
exist. Then i put the path each file in /var/named, in
the /etc/named.rfc1912.zones file. After the changes come this message:

zone localhost/IN: loading from master file /var/named/localhost.zone
failed: invalid file

Then I created links for chroot.

[root at localhost named]# ls -las
total 12
4 drwxr-x--- 3 root  named 4096 Jun 26 10:06 .
4 drwxr-x--- 6 root  named 4096 Jun 26 09:28 ..
4 drwxrwx--- 2 named named 4096 Jun 25 21:46 data
0 lrwxrwxrwx 1 root  root    25 Jun 26 10:06 localdomain.zone
-> /var/named/localhost.zone
0 lrwxrwxrwx 1 root  root    25 Jun 26 09:50 localhost.zone
-> /var/named/localhost.zone
0 lrwxrwxrwx 1 root  root    26 Jun 26 09:54 named.broadcast
-> /var/named/named.broadcast
0 lrwxrwxrwx 1 root  root    19 Jun 26 09:29 named.ca
-> /var/named/named.ca
0 lrwxrwxrwx 1 root  root    26 Jun 26 09:54 named.ip6.local
-> /var/named/named.ip6.local
0 lrwxrwxrwx 1 root  root    22 Jun 26 09:51 named.local
-> /var/named/named.local
0 lrwxrwxrwx 1 root  root    21 Jun 26 09:52 named.zero
-> /var/named/named.zero

Now I try to run bind again.

For each file in /var/named come these logs:

Error in named configuration:
zone localdomain/IN: loading from master
file /var/named/localdomain.zone failed: invalid file
zone localdomain/IN: not loaded due to errors.
_default/localdomain/IN: invalid file
zone localhost/IN: loading from master file /var/named/localhost.zone
failed: invalid file
zone localhost/IN: not loaded due to errors.

What I can to do  ?
 
[]'s

Rodrigo Faria

 

Em Dom, 2011-06-26 às 03:52 +0200, Eivind Olsen escreveu:
> Rodrigo Faria Tavares wrote:
> 
> > Error in named configuration:
> > /etc/named.rfc1912.zones:10: zone '.': already exists previous
> > definition: /etc/named.conf:35
> > How I can resolve it ?
> 
> By fixing your configuration. The error message seems clear enough, so
> check what you have in /etc/named.rfc1912.zones around line 10, and in
> /etc/named.conf around line 35. The error message suggests you have
> defined the root zone "." twice.
> 
> Regards
> Eivind Olsen
> 
> 





More information about the bind-users mailing list