Send dhcp-users mailing list submissions to
        dhcp-users@lists.isc.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/dhcp-users
or, via email, send a message with subject or body 'help' to
        dhcp-users-requ...@lists.isc.org

You can reach the person managing the list at
        dhcp-users-ow...@lists.isc.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dhcp-users digest..."


Today's Topics:

   1. Dynamic client host-name (Option 12) (Dave M)


----------------------------------------------------------------------

Message: 1
Date: Fri, 30 Aug 2019 16:06:43 -0400
From: Dave M <2wheels...@gmail.com>
To: dhcp-users@lists.isc.org
Subject: Dynamic client host-name (Option 12)
Message-ID:
        <CACx_ihGMNesfAXhnLBjpegM88h-5A_qtdxQ1iqJQ+RApH1n_=q...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

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 172.16.52.0 netmask 255.255.254.0
        {
                allow leasequery;
                option routers 172.16.53.254;
                option broadcast-address 172.16.53.255;
                option domain-name-servers 172.16.64.15 ;
                ddns-hostname = concat("mta-", hw_mac_short);
                ddns-domainname "emta.lab.com.";
                host-name = concat("mta-", hw_mac_short);   -----> not
working
                option domain-name "emta.lab.com";
                filename = concat("config/mta-", hw_mac_short, ".cfg");
                pool
                {
                        #pool: MTA 172.16.52.1 172.16.53.253
                        range 172.16.52.1 172.16.53.253;

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

------------------------------

Subject: Digest Footer

_______________________________________________
dhcp-users mailing list
dhcp-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users


------------------------------

End of dhcp-users Digest, Vol 130, Issue 24
*******************************************

Reply via email to