[Kea-users] Force DDNS update for all clients and use MAC in DNS?

Marcin Siodelski marcin at isc.org
Mon Jan 18 12:43:12 UTC 2016


Hi Jan,

Sorry for a delay in replying to your message.

Currently, the server expects Hostname or Client FQDN option to be sent
by a client to generate NCR. If both are present, Client FQDN takes
precedence. If the client doesn't send any of them, the DNS update is
not performed.

I created ticket http://kea.isc.org/ticket/4259 to consider adding a
configuration parameter to force generation of the hostname and updating
DNS, even if the client neglected to send the Hostname or Client FQDN
option.

To answer your second question. The hostname is generated using client's
IP address and there is no generic mechanism to generate the hostname
from its MAC address. I opened another ticket to address it:
http://kea.isc.org/ticket/4260.

For now, the only way to achieve it is to create a simple hook library.
It could append hostname option to the query received by the server from
a client.

Marcin Siodelski
ISC


On 04.01.2016 15:22, Jan Schermer wrote:
> Hello,
> I just started using Kea and there are two things I am missing.
> The clients are (mostly) IPMI BMCs - udhcp seems to be popular here as
> a client - and they don't appear to be sending any "hostname" part in
> the request.
>
> 1) While running "dhclient" from a linux box registers the address in
> DDNS, those embedded clients do not.
>
> For IPMI BMCs this is in logs:
> 2015-12-16 12:29:28.170 DEBUG [kea-dhcp4.ddns/2883] DHCP4_NCR_CREATE
> [hwtype=1 00:25:90:87:a3:15], cid=[01:00:25:90:87:a3:15],
> tid=0xac284f2d: DDNS updates enabled, therefore sending name change
> requests
> But no NCR is generated.
>
> For dhclient:
> 2015-12-16 13:56:51.517 DEBUG [kea-dhcp4.ddns/10645] DHCP4_NCR_CREATE
> [hwtype=1 52:54:00:53:af:22], cid=[no info], tid=0xb13b5550: DDNS
> updates enabled, therefore sending name change requests
> 2015-12-16 13:56:51.518 DEBUG [kea-dhcp4.ddns/10645] DHCP4_QUEUE_NCR
> name change request to add DNS entry queued: Type: 0 (CHG_ADD)
> ...
> And the NCR is created and sent
>
> Is this a bug or is it intentional? Is there a way to force it for all
> clients?
>
>
> 2) I'd like the DNS entry to contain the MAC of the client like this
>
> ipmi-FEEDBEEFFACE.myorg.domain
>
> Is this possible without writing my own "hook" library? Or will it be
> possible in the future?
>
> Thanks
>
> Jan
>
>
> _______________________________________________
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
>




More information about the Kea-users mailing list