[Kea-users] dynamic hostname

alexis alzrck at gmail.com
Thu Nov 6 23:25:13 UTC 2014


so i’ll have to learn C++, ok, no problem, on my way. :) 

as soon i finish a current project ill try to get a hook and build a hostname

thanks


> On Nov 6, 2014, at 12:56, Marcin Siodelski <marcin at isc.org> wrote:
> 
> Hi,
> 
> Currently Kea has well defined format of the generated hostname:
> [generated-prefix]-[ip-address-text].[qualifying-suffix]
> 
> as described here
> http://git.kea.isc.org/~tester/kea/guide/kea-guide.html#dhcp4-ddns-config.
> 
> There is no generic mechanism to generate a host name out of anything.
> One possibility to influence the hostname being used by the server (so,
> store it in the lease database, return in an FQDN option and send to
> DNS) would be to use a callout. Perhaps the one that is called when the
> query from the client is received and modify the FQDN value in the FQDN
> option in the callout. That is pkt4_receive callout, IIRC.
> 
> Marcin
> 
> On 11/06/14 13:12, alexis wrote:
>> Hello, on ISC i have this
>> 
>> ddns-hostname = concat("MTA-", binary-to-ascii (16,8,"-",substring
>> (hardware, 1,6)));
>> option host-name = concat("MTA-", binary-to-ascii (16,8,"-",substring
>> (hardware, 1,6)));
>> 
>> can this be achieved on kea? i need to dinamically generate the hostname
>> for the device (a cablelabs MTA)
>> 
>> Thanks in advance.
>> 
>> 
>> _______________________________________________
>> 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