Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

966 views
Skip to first unread message

James

unread,
Jun 24, 2015, 8:40:05 AM6/24/15
to
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.

--
-James

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

Luca Olivetti

unread,
Jun 24, 2015, 9:20:03 AM6/24/15
to
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
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007

Rowland Penny

unread,
Jun 24, 2015, 9:20:04 AM6/24/15
to
On 24/06/15 13:30, James wrote:
> 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.
>

Unless a lot as changed (and I don't think it has) I couldn't get dhcp
to update the internal dns server, but it will update Bind9. This is
what I have been using since samba4 was released, with only minor
problems, usually of my own making. I can also manage DNS with the
windows tools, not that it needs much managing :-)

Sketch

unread,
Jun 24, 2015, 9:30:04 AM6/24/15
to
On Wed, 24 Jun 2015, James wrote:

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

If you use BIND9-DLZ, the zone data is stored in Active Directory, and can
be managed by the Windows DNS tools.

Rowland Penny

unread,
Jun 24, 2015, 10:20:04 AM6/24/15
to
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

James

unread,
Jun 24, 2015, 11:10:04 AM6/24/15
to
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.
Can someone post a tutorial link with using Bind? I was not aware it
could be managed by Windows DNS Tool. Thanks.

--
-James

Luca Olivetti

unread,
Jun 24, 2015, 4:20:03 PM6/24/15
to
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

unread,
Jun 25, 2015, 4:00:03 AM6/25/15
to
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

James

unread,
Jun 25, 2015, 8:10:03 AM6/25/15
to
Luca,

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

--
-James
0 new messages