Dynamic client host-name (Option 12)

Dave M 2wheelsyyz at gmail.com
Fri Aug 30 20:06:43 UTC 2019

I have clients (eMTA) who request a hostname parameter. It is easy to
create static entries and provide clients with an hostname back but I can't
manage to do it dynamically.

I have the rest of my configuration working fine except that one line:

        subnet netmask
                allow leasequery;
                option routers;
                option broadcast-address;
                option domain-name-servers ;
                ddns-hostname = concat("mta-", hw_mac_short);
                ddns-domainname "emta.lab.com.";
                host-name = concat("mta-", hw_mac_short);   -----> not
                option domain-name "emta.lab.com";
                filename = concat("config/mta-", hw_mac_short, ".cfg");
                        #pool: MTA

                        allow members of "MTA";

If I hardcode the host-name, then the DDNS works fine and gets created
based on the mac (variable hw_mac_short) but I can't figure out how to
return option 12 dynamically to clients requesting it.

I'm testing this on ISC DHCP 4.4.1

Is there a trick for that?

Dave M.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20190830/b7e30c2a/attachment.html>

More information about the dhcp-users mailing list