<div dir="ltr">Here's something I use when hosts don't send a hostname.<div>In global options:<br></div><div><div><br></div><div>ddns-hostname = pick (option fqdn.hostname, option host-name, concat ("ddns-", binary-to-ascii (10, 8, "-", leased-address)));</div><div>option host-name = config-option server.ddns-hostname;<br></div></div><div><br></div><div>Resulting ddns hostname is ddns-xxx-xxx-xxx-xxx.domain_name</div><div><br></div><div>Edit to suit.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 22, 2016 at 1:48 PM,  <span dir="ltr"><<a href="mailto:durwin@mgtsciences.com" target="_blank">durwin@mgtsciences.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font size="2" face="sans-serif">I have some embedded devices with minimal
OS.  I am not sure the DHCP client has compiled ability to send hostname.
 I have seen this used while searching for help on this subject.</font>
<br>
<br><font size="2" face="sans-serif">host e2rb_004 {</font>
<br><font size="2" face="sans-serif">        option
host-name "e2rb_004";</font>
<br><font size="2" face="sans-serif">        ddns-hostname
"e2rb_004";</font>
<br><font size="2" face="sans-serif">        hardware
ethernet 00:10:60:31:b2:a0;</font>
<br><font size="2" face="sans-serif">        fixed-address
172.23.93.38;</font>
<br><font size="2" face="sans-serif">}</font>
<br>
<br>
<br><font size="2" face="sans-serif">This does not add the hostname in DNS.
 My configuration does work as a normal DDNS.  Any machine which
sends it's hostname when requesting an IP *does* get added into DNS records.
 What I would like to do is to handle those embedded devices which
do *not* send hostname.</font>
<br>
<br><font size="2" face="sans-serif">Here is the DHCPD options.</font>
<br>
<br>
<br><font size="2" face="sans-serif">=== dhcpd.conf ===</font>
<br><font size="2" face="sans-serif">authoritative;</font>
<br>
<br><font size="2" face="sans-serif">ddns-update-style interim;</font>
<br><font size="2" face="sans-serif">ddns-updates on;</font>
<br><font size="2" face="sans-serif">ddns-domainname "<a href="http://mydomain.com" target="_blank">mydomain.com</a>";</font>
<br><font size="2" face="sans-serif">ddns-rev-domainname "in-addr.arpa.";</font>
<br><font size="2" face="sans-serif">update-static-leases on;</font>
<br><font size="2" face="sans-serif">ignore client-updates;</font>
<br><font size="2" face="sans-serif">one-lease-per-client true;</font>
<br>
<br><font size="2" face="sans-serif"># WPAD definition</font>
<br><font size="2" face="sans-serif">option wpad code 252 = text;</font>
<br>
<br><font size="2" face="sans-serif">key MSI_DHCPD_UPDATER {</font>
<br><font size="2" face="sans-serif">    algorithm hmac-md5;</font>
<br><font size="2" face="sans-serif">    secret "mysecret";</font>
<br><font size="2" face="sans-serif">};</font>
<br>
<br><font size="2" face="sans-serif">zone <a href="http://mydomain.com" target="_blank">mydomain.com</a>. {</font>
<br><font size="2" face="sans-serif">    primary 127.0.0.1;</font>
<br><font size="2" face="sans-serif">    key MSI_DHCPD_UPDATER;</font>
<br><font size="2" face="sans-serif">}</font>
<br>
<br><font size="2" face="sans-serif">zone 93.23.172.in-addr.arpa. {</font>
<br><font size="2" face="sans-serif">    primary 127.0.0.1;</font>
<br><font size="2" face="sans-serif">    key MSI_DHCPD_UPDATER;</font>
<br><font size="2" face="sans-serif">}</font>
<br>
<br><font size="2" face="sans-serif">subnet 172.23.93.0 netmask 255.255.255.0
{</font>
<br><font size="2" face="sans-serif">    option routers  
       172.23.93.1;</font>
<br><font size="2" face="sans-serif">    option wpad "\n\000";</font>
<br><font size="2" face="sans-serif">    option subnet-mask  
   255.255.255.0;</font>
<br><font size="2" face="sans-serif">    option domain-name  
   "<a href="http://mydomain.com" target="_blank">mydomain.com</a>";</font>
<br><font size="2" face="sans-serif">    option domain-name-servers
 172.23.93.3,172.23.93.9,198.<wbr>59.115.2;</font>
<br><font size="2" face="sans-serif">    option time-offset  
   -25200; # Mountain Standard Time</font>
<br><font size="2" face="sans-serif">    range dynamic-bootp 172.23.93.95
172.23.93.249;</font>
<br><font size="2" face="sans-serif">    default-lease-time 57600;</font>
<br><font size="2" face="sans-serif">    max-lease-time 57600;</font>
<br><font size="2" face="sans-serif">    min-lease-time 57600;</font>
<br><font size="2" face="sans-serif">    ddns-domainname "<a href="http://mydomain.com" target="_blank">mydomain.com</a>";</font>
<br><font size="2" face="sans-serif">}</font>
<br>
<br>
<br><font size="2" face="sans-serif">Any advice is appreciated.  Thank
you.</font>
<br>
<br>
<br><font size="2" face="sans-serif"><br>
Durwin F. De La Rue<br>
Management Sciences, Inc.<br>
6022 Constitution Ave. NE<br>
Albuquerque, NM  87110<br>
Phone <a href="tel:%28505%29%20255-8611" value="+15052558611" target="_blank">(505) 255-8611</a><br>
<br>
<br>
This email message and any attachments are for the sole use of the intended
recipient(s) and may contain proprietary and/or confidential information
which may be privileged or otherwise protected from disclosure. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not the
intended recipient(s), please contact the sender by reply email and destroy
the original message and any copies of the message as well as any attachments
to the original message.</font><br>______________________________<wbr>_________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/dhcp-users</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">aRDy Music and Rick Dicaire present:<br><a href="http://www.ardynet.com" target="_blank">http://www.ardynet.com</a><br><a href="http://www.ardynet.com:9000/ardymusic.ogg.m3u" target="_blank">http://www.ardynet.com:9000/ardymusic.ogg.m3u</a></div>
</div>