BIND 9.3.3rc3 can't load the config?

Barry Margolin barmar at alum.mit.edu
Fri Jan 26 05:35:51 UTC 2007


In article <epbvck$u7k$1 at sf1.isc.org>, ert weerr <sun1sol at yahoo.com> 
wrote:

> Guys,
> 
> I'm struggling with the configuration of BIND 9.3.3rc3 on my Red Hat Linux 
> host.
> However the config is pretty simple with a single domain and 3 hosts, the 
> server doesn't want to start but spitting out the following errors to the 
> screen...
> 
> # /etc/init.d/named start
> Starting named: 
> Error in named configuration:
> example.com.db:12: unknown RR type 'example.com.'
> example.com.db:16: unknown RR type 'mail'
> example.com.db:17: unknown RR type 'smtp5'
> dns_rdata_fromtext: example.com.db:18: near 'CNAME': extra input text
> zone example.com/IN: loading master file example.com.db: unknown class/type
> _default/example.com/IN: unknown class/type
> 2.224.10.in-addr.arpa:12: TTL set to prior TTL (216)
> zone 2.224.10.in-addr.arpa/IN: loaded serial 2007012602
>                                                            [FAILED]
> 
> named-checkzone also reports heaps of issues. The most annoying one is the 
> 'unknown RR type' one as I haven't found any details about the meaning of 
> this error.
> I have rewritten all the config files for at least two times to make sure 
> they are not in DOS format, even ran dos2unix just in case.
> 
> # named-checkzone example.com /var/named/chroot/etc/named.conf |more

The filename argument to named-checkzone is supposed to be the ZONE 
file, not the CONFIG file.  All these errors are because named.conf 
doesn't look anything like a zone file.

> /var/named/chroot/etc/named.conf:1: unknown RR type '{'
> /var/named/chroot/etc/named.conf:2: unknown RR type 'forwarders'
> /var/named/chroot/etc/named.conf:3: unknown RR type 'directory'
> dns_master_load: /var/named/chroot/etc/named.conf:3: syntax error
> dns_master_load: /var/named/chroot/etc/named.conf:3: syntax error
> dns_master_load: /var/named/chroot/etc/named.conf:5: unexpected end of line
> dns_master_load: /var/named/chroot/etc/named.conf:4: unexpected end of input
> dns_master_load: /var/named/chroot/etc/named.conf:6: syntax error
> dns_master_load: /var/named/chroot/etc/named.conf:6: syntax error
> /var/named/chroot/etc/named.conf:7: unknown RR type 'type'
> /var/named/chroot/etc/named.conf:8: unknown RR type 'file'
> dns_master_load: /var/named/chroot/etc/named.conf:8: syntax error
> dns_master_load: /var/named/chroot/etc/named.conf:8: syntax error
> dns_master_load: /var/named/chroot/etc/named.conf:10: unexpected end of line
> dns_master_load: /var/named/chroot/etc/named.conf:9: unexpected end of input
> dns_master_load: /var/named/chroot/etc/named.conf:11: syntax error
> dns_master_load: /var/named/chroot/etc/named.conf:11: syntax error
> /var/named/chroot/etc/named.conf:12: unknown RR type 'type'
> /var/named/chroot/etc/named.conf:13: unknown RR type 'file'
> dns_master_load: /var/named/chroot/etc/named.conf:13: syntax error
> dns_master_load: /var/named/chroot/etc/named.conf:13: syntax error
> /var/named/chroot/etc/named.conf:14: unknown RR type 'allow-update'
> /var/named/chroot/etc/named.conf:15: unknown RR type 'notify'
> dns_master_load: /var/named/chroot/etc/named.conf:17: unexpected end of line
> dns_master_load: /var/named/chroot/etc/named.conf:16: unexpected end of input
> dns_master_load: /var/named/chroot/etc/named.conf:18: syntax error
> dns_master_load: /var/named/chroot/etc/named.conf:18: syntax error
> /var/named/chroot/etc/named.conf:19: unknown RR type 'type'
> /var/named/chroot/etc/named.conf:20: unknown RR type 'file'
> dns_master_load: /var/named/chroot/etc/named.conf:20: syntax error
> dns_master_load: /var/named/chroot/etc/named.conf:20: syntax error
> /var/named/chroot/etc/named.conf:21: unknown RR type 'allow-update'
> /var/named/chroot/etc/named.conf:22: unknown RR type 'notify'
> dns_master_load: /var/named/chroot/etc/named.conf:24: unexpected end of line
> dns_master_load: /var/named/chroot/etc/named.conf:23: unexpected end of input
> zone example.com/IN: loading master file /var/named/chroot/etc/named.conf: 
> unknown class/type
> 
> 
> And the following is my configuration:
> 
> # cat named.conf
> options {
>         forwarders      { 192.168.102.10; };
>         directory       "/var/named";
> };
> 
> zone "." IN {
>         type hint;
>         file "named.ca";
> };
> 
> zone "example.com" IN {
>         type master;
>         file "example.com.db";
>         allow-update { none; };
>         notify no;
> };
> 
> zone "2.224.10.in-addr.arpa" IN {
>         type master;
>         file "2.224.10.in-addr.arpa";
>         allow-update { none; };
>         notify no;
> };
> 
> # cat example.com.db 
> $TTL    86400
> $ORIGIN example.com.
> @       IN      SOA     ns.example.com. postmaster.example.com. (
>                                 2007012602      ;
>                                 3H              ;
>                                 15M             ;
>                                 1W              ;
>                                 1D              ;
>                                 )
> 
>                 IN      NS              ns.example.com.
>         example.com.    IN      MX      10      mail.example.com.

This line should NOT be indented.  When you indent a line it means 
you're defining additional records for the same name as the preceding 
line.

> 
>                 ; IN    A               10.224.2.216
> 
>         mail    IN      A               10.224.2.216
>         smtp5   IN      A               10.224.2.217
>         ns      IN      CNAME           mail.example.com.

Same thing with these three lines.

> 
> # cat 2.224.10.in-addr.arpa
> $TTL    86400
> @       IN      SOA     ns.example.com  postmaster.example.com. (
>                                 2007012602
>                                 3H
>                                 15M
>                                 1W
>                                 1D )
> 
>                 IN      NS      ns.example.com.
> 
>         216     IN      PTR     mail.example.com.
>         217     IN      PTR     smtp5.example.com.

And these two.

> 
> 
> Could you please help me to find out the reason it can't load the config?
> 
> Thanks in advance!
> 
> Regards,
> 
> John
> 
> 
> 
> 
>  
> ______________________________________________________________________________
> ______
> 8:00? 8:25? 8:40? Find a flick in no time 
> with the Yahoo! Search movie showtime shortcut.
> http://tools.search.yahoo.com/shortcuts/#news

-- 
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***



More information about the bind-users mailing list