[Samba] Question about domain name with BIND9_DLZ

Daniel Carrasco Marín danielmadrid19 at gmail.com
Sat Apr 18 06:03:16 MDT 2015

Thanks for you answer.

My OS are Debian 7u8 as server, and Windows 7 as client. I'm doing the test
on virtual machines and the dhcp server is a simple router. Anyway i'm
using a static IP:
iface eth0 inet static
        dns-search home.red

and /etc/resolv.conf
domain HOME
search HOME

The bind9 config is not setted, because i did some tests on my work with a
configured bind9 server and the result was the same, then i've not tried to
set a better configuration:
include "/usr/local/samba/private/named.conf";
include "/etc/bind/rndc.key";

controls {
        inet port 953
        allow {;; } keys { "rndc-key"; };

options {
        directory "/var/local/cache/bind";
        allow-new-zones yes;
        transfers-in 500;
        empty-zones-enable yes;
        //forwarders {;; };
        recursion yes;
        //allow-transfer {"none";};
        allow-query { any; };
        allow-recursion { any; };

        dnssec-validation auto;

        auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { any; };

        rate-limit {
                responses-per-second 5;
                #window 5;
                #log-only yes;

zone "." {
        type hint;
        file "/etc/bind/db.root";

In the client machine i've configured as DNS the Samba server


2015-04-18 13:25 GMT+02:00 Rowland Penny <rowlandpenny at googlemail.com>:

> On 18/04/15 12:11, Daniel Carrasco Marín wrote:
>> Hi, first of all i'm sorry for my english.
>> I'm doing some tests to migrate a Samba3 domain to Samba4 with BIND9_DLZ,
>> but the Domain name in Windows information is not correct. Is not a
>> problem
>> because all works as expected, but i wan't to know if i'm doing something
>> wrong that can cause problems in future.
>> I've done the tests with this command:
>> samba-tool domain provision --use-rfc2307 --realm=home.red --domain=HOME
>> --adminpass="Pass" --server-role=dc --dns-backend=BIND9_DLZ
>> If i use the samba internal backend then the Domain Name in Windows is
>> right (HOME) and machine don't change (machine), but if I use the
>> backend then the domain name is changed (home.red) and the machine name
>> too
>> (machine.home.red).
>> Samba version is 4.2.1 stable compiled from git, and bind is the 9.9.7
>> compiled from source.
>> I've used this options to compile:
>> Samba
>> ./configure --sysconfdir=/etc/samba --bindir=/usr/bin --sbindir=/usr/sbin
>> --with-winbind
>> Bind:
>> ./configure --with-gssapi=/usr/include/gssapi --with-openssl=/usr
>> --enable-largefile --with-dlopen=yes --sysconfdir=/etc/bind
>> --bindir=/usr/bin --sbindir=/usr/sbin --enable-threads --enable-rrl
>> and of course i've included the link to "include
>> "/usr/local/samba/private/named.conf";" in BIND9 named.conf, and i've
>> uncommented the right version in that file.
>> The command "smbclient -L localhost -U%" shows the right info.
>> I'm doing something wrong?.
>> Can be problematic on future?.
>> Is there any way to fix it?.
>> Thanks!!
> What OS ?
> Do your windows clients get their ipaddresses via dhcp ?
> and if so, is the dhcp server supplying the domain name ?
> How have you set up bind9 ?
> Rowland
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba

More information about the samba mailing list