Andreas Schweizer
2012-Jan-07 19:02 UTC
[Samba] [Samba4] samba_dlz problem "loading configuration: already exists"
Hi, I'm new to this list and Samba4, so may be this is a stupid question. I've installed samba4 (4.0.0alpha18-GIT-7b42ceb) on a server in my home LAN and have a problem with samba_dlz and bind (9.8.1-P1). In the zone definition file for my LAN domain, I had configured the IP addresses for several host names (e.g. printer, ...) with "A" records. This worked perfectly fine in the past (e.g. "nslookup printer" returned the IP address of my printer). After adding the following line in /etc/named.conf according to the HOWTO: include "/usr/local/samba/private/named.conf"; ...I now get an error from samba_dlz: named: samba_dlz: Failed to configure zone 'myzone.priv' named: loading configuration: already exists If I comment-out my zone in /etc/named.conf, Samba4 works fine (it can even update the DNS database), but I can of course no longer access my devices, e.g. nslookup printer returns: aschweiz ~> nslookup printer Server: 172.16.1.18 Address: 172.16.1.18#53 ** server can't find printer: NXDOMAIN What I already tried was to add my devices in dns_update_list, e.g. by adding a line: A printer 172.16.1.16 However, then I get an error message when starting samba: "Failed DNS update - NT_STATUS_ACCESS_DENIED". Can anybody help me with this? How to add devices to the zone that Samba creates in the DNS server? Thank you, Andreas
Michael Wood
2012-Jan-07 20:26 UTC
[Samba] [Samba4] samba_dlz problem "loading configuration: already exists"
Hi On 7 January 2012 21:02, Andreas Schweizer <aschweiz at mac.com> wrote:> Hi, > > I'm new to this list and Samba4, so may be this is a stupid question. I've installed samba4 (4.0.0alpha18-GIT-7b42ceb) on a server in my home LAN and have a problem with samba_dlz and bind (9.8.1-P1). > > In the zone definition file for my LAN domain, I had configured the IP addresses for several host names (e.g. printer, ...) with "A" records. This worked perfectly fine in the past (e.g. "nslookup printer" returned the IP address of my printer). After adding the following line in /etc/named.conf according to the HOWTO: > > include "/usr/local/samba/private/named.conf"; > > ...I now get an error from samba_dlz: > > named: samba_dlz: Failed to configure zone 'myzone.priv' > named: loading configuration: already exists > > If I comment-out my zone in /etc/named.conf, Samba4 works fine (it can even update the DNS database), but I can of course no longer access my devices, e.g. nslookup printer returns: > > aschweiz ~> nslookup printer > Server: ? ? ? ? 172.16.1.18 > Address: ? ? ? ?172.16.1.18#53 > > ** server can't find printer: NXDOMAIN > > What I already tried was to add my devices in dns_update_list, e.g. by adding a line: > > A ? ?printer ? ?172.16.1.16 > > However, then I get an error message when starting samba: "Failed DNS update - NT_STATUS_ACCESS_DENIED". > > Can anybody help me with this? How to add devices to the zone that Samba creates in the DNS server?I have not tried this, but I believe you need to do something like this: dlz "AD DNS Zone" { database "dlopen /usr/local/samba/modules/bind9/dlz_bind9.so"; }; Try using "samba-tool dns" to query/update the records. -- Michael Wood <esiotrot at gmail.com>
steve
2012-Jan-07 21:21 UTC
[Samba] [Samba4] samba_dlz problem "loading configuration: already exists"
On 01/07/2012 08:02 PM, Andreas Schweizer wrote:> Hi, > > I'm new to this list and Samba4, so may be this is a stupid question. I've installed samba4 (4.0.0alpha18-GIT-7b42ceb) on a server in my home LAN and have a problem with samba_dlz and bind (9.8.1-P1). > > In the zone definition file for my LAN domain, I had configured the IP addresses for several host names (e.g. printer, ...) with "A" records. This worked perfectly fine in the past (e.g. "nslookup printer" returned the IP address of my printer). After adding the following line in /etc/named.conf according to the HOWTO: > > include "/usr/local/samba/private/named.conf"; > > ...I now get an error from samba_dlz: > > named: samba_dlz: Failed to configure zone 'myzone.priv' > named: loading configuration: already exists > > If I comment-out my zone in /etc/named.conf, Samba4 works fine (it can even update the DNS database), but I can of course no longer access my devices, e.g. nslookup printer returns: > > aschweiz ~> nslookup printer > Server: 172.16.1.18 > Address: 172.16.1.18#53 > > ** server can't find printer: NXDOMAIN > > What I already tried was to add my devices in dns_update_list, e.g. by adding a line: > > A printer 172.16.1.16 > > However, then I get an error message when starting samba: "Failed DNS update - NT_STATUS_ACCESS_DENIED". > > Can anybody help me with this? How to add devices to the zone that Samba creates in the DNS server? > > Thank you, > Andreas > > >I'm no expert but I also had problems with the dns updates. I added the line: tkey-gssapi-keytab "/usr/local/samba/private/dns.keytab"; to the options{} section of /etc/named.conf and all was well. There is some named:named ownership stuff to do for that keytab and the dns folder in the same directory. Not on the lan at the moment but I think it's explained in named.txt, also in the /private directory. HTH Steve
steve
2012-Jan-07 21:26 UTC
[Samba] [Samba4] samba_dlz problem "loading configuration: already exists"
Can anybody help me with this? How to add devices to the zone that Samba creates in the DNS server?> I have not tried this, but I believe you need to do something like this: > > dlz "AD DNS Zone" { > database "dlopen /usr/local/samba/modules/bind9/dlz_bind9.so"; > };I think the you already have this if you: include "/usr/local/samba/private/named.conf"; Steve
Seemingly Similar Threads
- samba_dlz Failed to configure reverse zone
- Workaround for bind9 reload bug : samba_dlz Ignoring duplicate zone
- Workaround for bind9 reload bug : samba_dlz Ignoring duplicate zone
- samba_dlz Failed to configure reverse zone
- samba_dlz: Failed to configure zone... already exists