Web lists-archives.com

Re: [Samba] DDNS with bind9 and isc-dhcp-server




On Wed, 15 Aug 2018 22:02:42 +0200
Stefan Kania via samba <samba@xxxxxxxxxxxxxxx> wrote:

> Hello List, Hello Rowland :-)
> again I'm having problems with the DDNS. I did it as shown in the
> wiki. I took all teh scripts from the wiki the dhcp-dyndns.sh is
> Version: 0.8.9 I configured everything including the failover. When I
> start the two DHCP-Server everything is perfect. I see the right
> messages in the log, the two DHCP-Servers are talking to each other.
> When a Client ask for an IP-adresse he get's one. BUT the DNS-Update
> is not working. Here is the result from the log:
> --------------------
> 
> Aug 15 21:27:51 sambabuch dhcpd[572]: Commit: IP: 192.168.56.221
> DHCID: 1:8:0:27:7b:f1:f2 Name: linux-client
> Aug 15 21:27:51 sambabuch dhcpd[572]: execute_statement argv[0] =
> /etc/dhcp/bin/dhcp-dyndns.sh
> Aug 15 21:27:51 sambabuch dhcpd[572]: execute_statement argv[1] = add
> Aug 15 21:27:51 sambabuch dhcpd[572]: execute_statement argv[2] =
> 192.168.56.221
> Aug 15 21:27:51 sambabuch dhcpd[572]: execute_statement argv[3] =
> 1:8:0:27:7b:f1:f2
> Aug 15 21:27:51 sambabuch dhcpd[572]: execute_statement argv[4] =
> linux-client
> Aug 15 21:27:51 sambabuch root[671]: 15-08-18 21:27:51 [dyndns] :
> Getting new ticket, old one has expired
> Aug 15 21:27:51 sambabuch root[674]: 15-08-18 21:27:51 [dyndns] :
> dhcpd kinit for dynamic DNS failed
> Aug 15 21:27:51 sambabuch dhcpd[572]: execute:
> /etc/dhcp/bin/dhcp-dyndns.sh exit status 256
> Aug 15 21:27:51 sambabuch dhcpd[572]: DHCPREQUEST for 192.168.56.221
> from 08:00:27:7b:f1:f2 (linux-client) via enp0s8
> Aug 15 21:27:51 sambabuch dhcpd[572]: DHCPACK on 192.168.56.221 to
> 08:00:27:7b:f1:f2 (linux-client) via enp0s8
> --------------------
> 

OK, it should look similar to this:

Aug 15 21:14:19 dc3 dhcpd: Commit: IP: 192.168.0.59 DHCID: 1:cc:4e:ec:e9:c8:d3 Name: dhcp-192-168-0-59
Aug 15 21:14:19 dc3 dhcpd: execute_statement argv[0] = /usr/local/bin/dhcp-dyndns.sh
Aug 15 21:14:19 dc3 dhcpd: execute_statement argv[1] = add
Aug 15 21:14:19 dc3 dhcpd: execute_statement argv[2] = 192.168.0.59
Aug 15 21:14:19 dc3 dhcpd: execute_statement argv[3] = 1:cc:4e:ec:e9:c8:d3
Aug 15 21:14:19 dc3 dhcpd: execute_statement argv[4] = dhcp-192-168-0-59
Aug 15 21:14:19 dc3 named[19425]: samba_dlz: starting transaction on zone samdom.example.com
Aug 15 21:14:19 dc3 named[19425]: samba_dlz: allowing update of signer=dhcpduser\@SAMDOM.EXAMPLE.COM name=dhcp-192-168-0-59.samdom.example.com tcpaddr=127.0.0.1 type=A key=2794253846.sig-dc3.samdom.example.com/160/0
Aug 15 21:14:19 dc3 named[19425]: samba_dlz: allowing update of signer=dhcpduser\@SAMDOM.EXAMPLE.COM name=dhcp-192-168-0-59.samdom.example.com tcpaddr=127.0.0.1 type=A key=2794253846.sig-dc3.samdom.example.com/160/0
Aug 15 21:14:19 dc3 named[19425]: samba_dlz: subtracted rdataset dhcp-192-168-0-59.samdom.example.com 'dhcp-192-168-0-59.samdom.example.com.#0113600#011IN#011A#011192.168.0.59'
Aug 15 21:14:19 dc3 named[19425]: samba_dlz: added rdataset dhcp-192-168-0-59.samdom.example.com 'dhcp-192-168-0-59.samdom.example.com.#0113600#011IN#011A#011192.168.0.59'
Aug 15 21:14:19 dc3 named[19425]: samba_dlz: committed transaction on zone samdom.example.com
Aug 15 21:14:19 dc3 named[19425]: samba_dlz: starting transaction on zone 0.168.192.in-addr.arpa
Aug 15 21:14:19 dc3 named[19425]: samba_dlz: allowing update of signer=dhcpduser\@SAMDOM.EXAMPLE.COM name=59.0.168.192.in-addr.arpa tcpaddr=127.0.0.1 type=PTR key=3218171095.sig-dc3.samdom.example.com/160/0
Aug 15 21:14:19 dc3 named[19425]: samba_dlz: allowing update of signer=dhcpduser\@SAMDOM.EXAMPLE.COM name=59.0.168.192.in-addr.arpa tcpaddr=127.0.0.1 type=PTR key=3218171095.sig-dc3.samdom.example.com/160/0
Aug 15 21:14:19 dc3 named[19425]: samba_dlz: subtracted rdataset 59.0.168.192.in-addr.arpa '59.0.168.192.in-addr.arpa.#0113600#011IN#011PTR#011dhcp-192-168-0-59.samdom.example.com.'
Aug 15 21:14:19 dc3 named[19425]: samba_dlz: added rdataset 59.0.168.192.in-addr.arpa '59.0.168.192.in-addr.arpa.#0113600#011IN#011PTR#011dhcp-192-168-0-59.samdom.example.com.'
Aug 15 21:14:19 dc3 named[19425]: samba_dlz: committed transaction on zone 0.168.192.in-addr.arpa
Aug 15 21:14:19 dc3 root: DHCP-DNS Update succeeded
Aug 15 21:14:20 dc3 dhcpd: DHCPREQUEST for 192.168.0.59 from cc:4e:ec:e9:c8:d3 via eth0
Aug 15 21:14:20 dc3 dhcpd: DHCPACK on 192.168.0.59 to cc:4e:ec:e9:c8:d3 via eth0

It looks like the update script is not running or failing somewhere.

What OS ?
What is in the named conf files ?

Rowland


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba