Daniel Carrasco Marín
2015-Apr-18 11:11 UTC
[Samba] Question about domain name with BIND9_DLZ
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 BIND9_DLZ 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!!
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 BIND9_DLZ > 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
Daniel Carrasco Marín
2015-Apr-18 12:03 UTC
[Samba] Question about domain name with BIND9_DLZ
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 address 192.168.1.100 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1 dns-nameservers 192.168.1.100 8.8.8.8 dns-search home.red and /etc/resolv.conf domain HOME search HOME nameserver 192.168.1.100 nameserver 8.8.8.8 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 127.0.0.1 port 953 allow { 127.0.0.1; 192.168.1.100; } keys { "rndc-key"; }; }; options { directory "/var/local/cache/bind"; allow-new-zones yes; transfers-in 500; empty-zones-enable yes; //forwarders { 8.8.8.8; 8.8.4.4; }; 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 Greetings!! 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 >> BIND9_DLZ >> 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 >