Problem with RELENG_5_3, BIND9 and dynamic updates
    Eivind Olsen 
    eivind at aminor.no
       
    Tue Nov  2 13:56:33 PST 2004
    
    
  
It looks like BIND9, as delivered in the base, has problems when zones 
are using dynamic DNS updates.
This is because it runs as user "bind", but that user doesn't have write 
access to /var/named/etc/namedb/master - the script /etc/rc.d/named uses 
mtree to set that directory as follows:
drwxr-xr-x  2 root  wheel   512 Nov  2 22:40 master
So, if I try to do a DNS-update (in this case using "nsupdate"-command") 
I get the following error in /var/log/all.log:
Nov  2 22:40:31 vimes named[98525]: client 213.187.177.2#54260: updating 
zone 'aminor.no/IN': adding an RR at 'jolie.aminor.no' A
Nov  2 22:40:31 vimes named[98525]: journal file 
master/aminor.no.zone.jnl does not exist, creating it
Nov  2 22:40:31 vimes named[98525]: master/aminor.no.zone.jnl: create: 
permission denied
Nov  2 22:40:31 vimes kernel: Nov  2 22:40:31 vimes named[98525]: 
master/aminor.no.zone.jnl: create: permission denied
Nov  2 22:40:31 vimes named[98525]: client 213.187.177.2#54260: updating 
zone 'aminor.no/IN': error: journal open failed: unexpected error
If on the other hand I start BIND9 as usual and then change the owner of 
the "master"-directory so it's owned by user "bind", the nsupdate works 
as expected.
It's not meant to be like this, is it?
-- 
Regards / Hilsen
Eivind Olsen
<eivind at aminor.no>
    
    
More information about the freebsd-current
mailing list