[Gllug] Bind9 on Debian Sarge

John Edwards john at cornerstonelinux.co.uk
Sat Sep 30 20:21:53 UTC 2006


On Sat, Sep 30, 2006 at 09:06:52PM +0100, Chris Bell wrote:
> Hello,
>    I have a local Bind9 DNS server on a Debian Sarge box which has been
> running without problens for some time.
>    I have just tried to add another box to my network, and modify the
> /etc/bind/ databases to suit. Running "named-checkzone" now shows that all
> my previously OK database files are showing syntax errors on line 1 near
> '; ' where in every case, including the automatically generated db.0 and
> db.255 files, the first few lines carry a summary of the file as comments.
>    I tried putting a # at the beginning of each line instead, and found that
> the first few lines of the real database then generated multiple "errors" so
> reverted to what I had before.
>    Running "rndc reload" still seems to work, and the new box can be found.
> I have not seen any warnings about the precise positions of header lines or
> restrictions on commented-out lines.

Well your second problems is that the # character is not a valid 
comment character for BIND zone files. Use ; instead.

As to the first problem, this is the default /etc/bind/db.0 file from 
BIND v9.2.4 on Debian 3.1 ("sarge"), which passes named-checkzone 
without any errors:
----------------------------------------------------------------------
;
; BIND reverse data file for broadcast zone
;
$TTL    604800
@       IN      SOA     localhost. root.localhost. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      localhost.
----------------------------------------------------------------------

How are you calling named-checkzone ?

Try running:
	/usr/sbin/named-checkzone localhost /etc/bind/db.local ; echo $?
	/usr/sbin/named-checkzone 0.in-addr.arpa /etc/bind/db.0 ; echo $?


What are the exact error messages ?


Also how are you editing the files ?
Could it be that they are getting DOS or Mac end of line characters ?


-- 
#---------------------------------------------------------#
|    John Edwards   Email: john at cornerstonelinux.co.uk    |
|                                                         |
| A. Because it breaks the logical sequence of discussion |
| Q. Why is top posting bad ?                             |
#---------------------------------------------------------#
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list