Siovel Rodríguez Morales
2017-Oct-07 20:55 UTC
[Samba] bind9 and isc-dhcp-Server for dynamic DNS-updates Error
Hello Rolawnd, I followed the wikipage exactly. Bind9 is installed on the Samba DC. The Linux-Client should be a member of the Active Directory-domain? Regards ----- Mensaje original ----- De: "samba" <samba at lists.samba.org> Para: "samba" <samba at lists.samba.org> Enviados: Sábado, 7 de Octubre 2017 13:29:43 Asunto: Re: [Samba] bind9 and isc-dhcp-Server for dynamic DNS-updates Error On Sat, 7 Oct 2017 12:37:49 -0400 (CDT) Siovel Rodríguez Morales via samba <samba at lists.samba.org> wrote:> Hello, I try to set up a AD with bind9 and isc-dhcp-Server for > dynamic DNS-updates. I followd the wiki: > https://wiki.samba.org/index.php/Configure_DHCP_to_update_DNS_records_wi > th_BIND9 > > But I have this error: > Oct 7 12:17:36 samba467 dhcpd: execute_statement argv[0] > = /etc/dhcp/bin/dhcp-dyndns.sh Oct 7 12:17:36 samba467 dhcpd: > execute_statement argv[1] = add Oct 7 12:17:36 samba467 dhcpd: > execute_statement argv[2] = 192.168.16.38 Oct 7 12:17:36 samba467 > dhcpd: execute_statement argv[3] = 1:8:0:27:e7:a:66 Oct 7 12:17:36 > samba467 dhcpd: execute_statement argv[4] = omtest Oct 7 12:17:36 > samba467 dhcpd: execute: /etc/dhcp/bin/dhcp-dyndns.sh exit status 256 > > If I execute the script manually, it works ok > > /etc/dhcp/bin/dhcp-dyndns.sh add 192.168.16.38 1:8:0:27:e7:a:66 > > omtest > > I use Debian Jessie. > > Please, help meHave you followed the wikipage exactly, or have you changed anything ? Is Bind9 installed on the Samba DC ? Try rebooting the DC and see if this helps, I can assure you it works, it has done for me for the last 5 years. Rowland -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Rowland Penny
2017-Oct-07 21:30 UTC
[Samba] bind9 and isc-dhcp-Server for dynamic DNS-updates Error
On Sat, 7 Oct 2017 16:55:50 -0400 (CDT) Siovel Rodríguez Morales <siovel at softel.cu> wrote:> Hello Rolawnd, I followed the wikipage exactly. Bind9 is installed on > the Samba DC. The Linux-Client should be a member of the Active > Directory-domain? >It works for printers and I haven't yet found a way to join them to a domain ;-) It should work like a normal DHCP server, but it should also update the Samba AD records. Two things, can you post your named.conf files and can you find this line in the /etc/dhcp/bin/dhcp-dyndns.sh : #NSUPDFLAGS="-d" remove the comment sign '#' and try again. You should get a lot more info in the logs. Rowland
Siovel Rodríguez Morales
2017-Oct-07 21:51 UTC
[Samba] bind9 and isc-dhcp-Server for dynamic DNS-updates Error
This is my named.conf
options {
directory "/var/cache/bind";
notify no;
empty-zones-enable no;
auth-nxdomain yes;
listen-on-v6 { none; };
forwarders { 192.168.10.3; 10.0.0.3; };
allow-query { 127.0.0.1/32; 192.168.16.0/24; };
allow-recursion { 127.0.0.1/32; 192.168.16.0/24; };
tkey-gssapi-keytab
"/usr/local/samba/private/dns.keytab";
};
I remove the comment sign '#'
NSUPDFLAGS="-d"
But the logs are the same:
Oct 7 17:44:38 samba467 dhcpd: DHCPREQUEST for 192.168.16.38 from
08:00:27:e7:0a:66 (omtest) via eth0
Oct 7 17:44:38 samba467 dhcpd: DHCPACK on 192.168.16.38 to 08:00:27:e7:0a:66
(omtest) via eth0
Oct 7 17:44:55 samba467 dhcpd: Commit: IP: 192.168.16.37 DHCID:
1:0:c:29:e5:43:bf Name: ubuntu
Oct 7 17:44:55 samba467 dhcpd: execute_statement argv[0] =
/etc/dhcp/bin/dhcp-dyndns.sh
Oct 7 17:44:55 samba467 dhcpd: execute_statement argv[1] = add
Oct 7 17:44:55 samba467 dhcpd: execute_statement argv[2] = 192.168.16.37
Oct 7 17:44:55 samba467 dhcpd: execute_statement argv[3] = 1:0:c:29:e5:43:bf
Oct 7 17:44:55 samba467 dhcpd: execute_statement argv[4] = ubuntu
Oct 7 17:44:55 samba467 dhcpd: execute: /etc/dhcp/bin/dhcp-dyndns.sh exit
status 256
----- Mensaje original -----
De: "samba" <samba at lists.samba.org>
Para: "samba" <samba at lists.samba.org>
Enviados: Sábado, 7 de Octubre 2017 17:30:54
Asunto: Re: [Samba] bind9 and isc-dhcp-Server for dynamic DNS-updates Error
On Sat, 7 Oct 2017 16:55:50 -0400 (CDT)
Siovel Rodríguez Morales <siovel at softel.cu> wrote:
> Hello Rolawnd, I followed the wikipage exactly. Bind9 is installed on
> the Samba DC. The Linux-Client should be a member of the Active
> Directory-domain?
>
It works for printers and I haven't yet found a way to join them to a
domain ;-)
It should work like a normal DHCP server, but it should also update the
Samba AD records.
Two things, can you post your named.conf files and can you find this
line in the /etc/dhcp/bin/dhcp-dyndns.sh :
#NSUPDFLAGS="-d"
remove the comment sign '#' and try again.
You should get a lot more info in the logs.
Rowland
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba