[Samba] How can I switch from internal dns server to bind9

felix at epepm.cupet.cu felix at epepm.cupet.cu
Fri Oct 12 10:12:58 MDT 2012

> 2012-10-12 14:34 keltezéssel, felix at epepm.cupet.cu írta:
>>> On Tue, 2012-10-09 at 17:18 -0400, felix at epepm.cupet.cu wrote:
>>>>> On 10/9/12, felix at epepm.cupet.cu <felix at epepm.cupet.cu> wrote:
>>>>>> How can I switch from internal dns server to bind9???
>>>>> Add into [global] section of smb.conf "server services = -dns".
>>>>> Configure Bind (see named.* files which comes with samba) to use dlz
>>>>> plugin or good old plain files (requires basic zone definition).
>>>>> --
>>>> I guess it's not that easy. First, I added by hand the file named.conf
>>>> to
>>>> /usr/local/samba/private. Second the dlz complains: Failed to connect
>>>> to
>>>> /usr/local/samba/private/dns/sam.ldb and there is no such directory,
>>>> instead sam.ldb is directly under /usr/local/samba/private/
>>> Run samba_upgradedns to create the extra files and the account.
>>> Andrew Bartlett
>> Now that I'm using bind9 I have two sam.ldb and sam.ldb.d. One pair
>> directly under /usr/local/samba/private/ and the other pair under
>> /usr/local/samba/private/dns/
>> The last pair was created when I switched to bind9. Can I delete the
>> pair
>> directly under /private ???
>> Cheers,
>> Felix.
> NO!!!!!!!!!!!!!!!!!
> You will lose your samba domain. The sam.ldb in the private directory is
> the master part of the domain and the one under dns is just a replica
> which is created to do not give to bind access to the whole domain.
> Regards
> Geza Gemes
> --

Thanks for your answer Geza.

More information about the samba mailing list