[Samba] can't do dhcp + samba + bind work together
artyom
artemko1991 at yandex.ru
Wed May 17 11:26:16 UTC 2017
I use official manual from wiki.samba.org for install samba 4.6.3 (from
source) with bind_dlz on bind 9.9.10 (from source too). My OS is Debian
Jessie x64 8.8 netinst. I use
https://wiki.samba.org/index.php/Configure_DHCP_to_update_DNS_records_with_BIND9
article for dynamic dhcp updates on dns zones. DHCP is working but dns
updates not: i have this messages on my syslog then dhcpoffer:
May 17 14:24:35 ad1 dhcpd: DHCPRELEASE of 10.10.1.0 from ea:d6:54:12:48:54
(test-pc) via eth0 (found)
May 17 14:25:17 ad1 dhcpd: DHCPDISCOVER from ea:d6:54:12:48:54 via eth0
May 17 14:25:18 ad1 dhcpd: DHCPOFFER on 10.10.1.0 to ea:d6:54:12:48:54
(test-pc) via eth0
May 17 14:25:18 ad1 dhcpd: Commit: IP: 10.10.1.0 DHCID: 1:ea:d6:54:12:48:54
Name: test-pc
May 17 14:25:18 ad1 dhcpd: execute_statement argv[0] =
/etc/dhcp/bin/dhcp-dyndns.sh
May 17 14:25:18 ad1 dhcpd: execute_statement argv[1] = add
May 17 14:25:18 ad1 dhcpd: execute_statement argv[2] = 10.10.1.0
May 17 14:25:18 ad1 dhcpd: execute_statement argv[3] = 1:ea:d6:54:12:48:54
May 17 14:25:18 ad1 dhcpd: execute_statement argv[4] = test-pc
May 17 14:25:18 ad1 dhcpd: execute: /etc/dhcp/bin/dhcp-dyndns.sh exit status
256
May 17 14:25:18 ad1 dhcpd: DHCPREQUEST for 10.10.1.0 (10.10.0.3) from
ea:d6:54:12:48:54 (test-pc) via eth0
May 17 14:25:18 ad1 dhcpd: DHCPACK on 10.10.1.0 to ea:d6:54:12:48:54
(test-pc) via eth0
BUT, then i use script from article in console like
root at ad1:~# /etc/dhcp/bin/dhcp-dyndns.sh add 10.10.1.254 01:02:03:04:06:07
twofivefoup
i get
could not find enclosing zone
in STDOUT and
May 17 14:32:09 ad1 named[611]: samba_dlz: starting transaction on zone
kch.remel.lan
May 17 14:32:09 ad1 named[611]: samba_dlz: allowing update of
signer=dhcpuser\@KCH.REMEL.LAN name=twofivefoup.kch.remel.lan
tcpaddr=127.0.0.1 type=A key=2973367694.sig-ad1.kch.remel.lan/160/0
May 17 14:32:09 ad1 named[611]: samba_dlz: allowing update of
signer=dhcpuser\@KCH.REMEL.LAN name=twofivefoup.kch.remel.lan
tcpaddr=127.0.0.1 type=A key=2973367694.sig-ad1.kch.remel.lan/160/0
May 17 14:32:09 ad1 named[611]: client 127.0.0.1#36520/key
dhcpuser\@KCH.REMEL.LAN: updating zone 'kch.remel.lan/NONE': deleting rrset
at 'twofivefoup.kch.remel.lan' A
May 17 14:32:09 ad1 named[611]: client 127.0.0.1#36520/key
dhcpuser\@KCH.REMEL.LAN: updating zone 'kch.remel.lan/NONE': adding an RR at
'twofivefoup.kch.remel.lan' A
May 17 14:32:09 ad1 named[611]: samba_dlz: added rdataset
twofivefoup.kch.remel.lan
'twofivefoup.kch.remel.lan.#0113600#011IN#011A#01110.10.1.254'
May 17 14:32:09 ad1 named[611]: samba_dlz: subtracted rdataset kch.remel.lan
'kch.remel.lan.#0113600#011IN#011SOA#011ad1.kch.remel.lan.
hostmaster.kch.remel.lan. 8 900 600 86400 3600'
May 17 14:32:09 ad1 named[611]: samba_dlz: added rdataset kch.remel.lan
'kch.remel.lan.#0113600#011IN#011SOA#011ad1.kch.remel.lan.
hostmaster.kch.remel.lan. 9 900 600 86400 3600'
May 17 14:32:09 ad1 named[611]: samba_dlz: committed transaction on zone
kch.remel.lan
May 17 14:32:09 ad1 remel: DHCP-DNS Update failed: 01
and i see this record in zone by:
root at ad1:~# nslookup twofivefoup
Server: 10.10.0.3
Address: 10.10.0.3#53
Name: twofivefoup.kch.remel.lan
Address: 10.10.1.254
P.S. Sorry if this mail looks terrible - i never using mail lists before :)
--
View this message in context: http://samba.2283325.n4.nabble.com/can-t-do-dhcp-samba-bind-work-together-tp4718775.html
Sent from the Samba - General mailing list archive at Nabble.com.
More information about the samba
mailing list