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

James lingpanda101 at gmail.com
Thu Jun 25 06:08:24 MDT 2015


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
>
>
> Bye

Luca,

    Thank you for following up. I will give this a try then.

-- 
-James



More information about the samba mailing list