Luca Olivetti
2015-Jun-24 20:12 UTC
[Samba] Using isc-dhcp for DDNS with Samba4 internal DNS
El 24/06/15 a les 17:02, James ha escrit:> On 6/24/2015 10:13 AM, Rowland Penny wrote: >> On 24/06/15 14:17, Luca Olivetti wrote: >>> El 24/06/15 a les 14:30, James ha escrit: >>>> Hello, >>>> >>>> Is it possible to use isc-dhcp for DDNS with Samba internal DNS? I >>>> would rather not use bind as I understand you can't use Windows DNS >>>> tool >>>> to manage. Thanks. >>> >>> Yes, it is possible, look here: >>> >>> >>> https://wiki.archlinux.org/index.php/Samba_4_Active_Directory_domain_controller#DHCP >>> >>> >>> Bye >> >> Well, that's one way of doing it, it's not the way I do it, nearly, >> but with a lot of differences, I don't use samba-tool for instance. >> >> Rowland >> > I appreciate all the responses. I do not want to lose the ability for > clients to update DNS. It appears I will if I follow the link posted.No, there's no problem, since the script waits 5 seconds in order to give the client time to update its record. And if the client doesn't do it, the the script will do it. In fact you can ignore the section about the GPO. I had to modify something in the dhcp configuration though, I cannot tell what now since the server is in a VLAN that's not accessible outside the office, and I'm not there right now. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007
Luca Olivetti
2015-Jun-25 07:53 UTC
[Samba] Using isc-dhcp for DDNS with Samba4 internal DNS
El 24/06/15 a les 22:12, Luca Olivetti ha escrit:>> I appreciate all the responses. I do not want to lose the ability for >> clients to update DNS. It appears I will if I follow the link posted. > > No, there's no problem, since the script waits 5 seconds in order to > give the client time to update its record. And if the client doesn't do > it, the the script will do it. > In fact you can ignore the section about the GPO. > I had to modify something in the dhcp configuration though, I cannot > tell what now since the server is in a VLAN that's not accessible > outside the office, and I'm not there right now.I case you need it, this is what I have in my dhcpd.conf on commit { set noname = concat("dhcp-", binary-to-ascii(10, 8, "-", leased-address)); set ClientIP = binary-to-ascii(10, 8, ".", leased-address); set ClientName = pick-first-value(option host-name, host-decl-name, config-option host-name, noname); execute("/etc/dhcp/update.sh", "add", ClientIP, ClientName); } on release { #ClientIP and ClientName are stored in the lease execute("/etc/dhcp/update.sh", "delete", ClientIP, ClientName); } on expiry { #ClientIP and ClientName are stored in the lease execute("/etc/dhcp/update.sh", "delete", ClientIP, ClientName); } this is the version of my dhcp server: ii isc-dhcp-server 4.2.4-7ubuntu12 amd64 ISC DHCP server for automatic IP address assignm Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007
On 6/25/2015 3:53 AM, Luca Olivetti wrote:> El 24/06/15 a les 22:12, Luca Olivetti ha escrit: > >>> I appreciate all the responses. I do not want to lose the ability for >>> clients to update DNS. It appears I will if I follow the link posted. >> >> No, there's no problem, since the script waits 5 seconds in order to >> give the client time to update its record. And if the client doesn't do >> it, the the script will do it. >> In fact you can ignore the section about the GPO. >> I had to modify something in the dhcp configuration though, I cannot >> tell what now since the server is in a VLAN that's not accessible >> outside the office, and I'm not there right now. > > I case you need it, this is what I have in my dhcpd.conf > > > on commit { > set noname = concat("dhcp-", binary-to-ascii(10, 8, "-", > leased-address)); > set ClientIP = binary-to-ascii(10, 8, ".", leased-address); > set ClientName = pick-first-value(option host-name, > host-decl-name, config-option host-name, noname); > execute("/etc/dhcp/update.sh", "add", ClientIP, ClientName); > } > > on release { > #ClientIP and ClientName are stored in the lease > execute("/etc/dhcp/update.sh", "delete", ClientIP, ClientName); > } > > on expiry { > #ClientIP and ClientName are stored in the lease > execute("/etc/dhcp/update.sh", "delete", ClientIP, ClientName); > } > > > this is the version of my dhcp server: > > ii isc-dhcp-server 4.2.4-7ubuntu12 amd64 ISC DHCP > server for automatic IP address assignm > > > ByeLuca, Thank you for following up. I will give this a try then. -- -James