[Samba] Using isc-dhcp for DDNS with Samba4 internal DNS

Luca Olivetti luca at wetron.es
Thu Jun 25 01:53:20 MDT 2015


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


More information about the samba mailing list