How to find hostname

Bill Shirley Bill at Henagar.PolymerIndustries.biz
Thu Sep 18 00:10:51 UTC 2014


On 9/17/2014 8:03 PM, Jason Hellenthal wrote:
> The MAC address of the hosts adapter... Take look at the last line of your log file and compare the two.
>
> -- 
>  Jason Hellenthal
>  Mobile: +1 (616) 953-0176
> jhellenthal at DataIX.net <mailto:jhellenthal at DataIX.net>
>  JJH48-ARIN
>
> On Sep 17, 2014, at 18:59, Bill Shirley <Bill at Henagar.PolymerIndustries.biz 
> <mailto:Bill at Henagar.PolymerIndustries.biz>> wrote:
>
>> I'm having trouble figuring out where this device gets its name.  My log statement:
>> on commit {
>>         if static { set is-static = " --> STATIC"; } else { set is-static = "";}
>>         log (   info,
>>                 concat (
>>                         "Host:", pick-first-value(option fqdn.hostname, option host-name, ddns-hostname, "(none)")
>>                         ,"  VendorId:", pick-first-value(option vendor-class-identifier, "(none)")
>> #                       ,"  UserClass:", pick-first-value(option user-class, "(none)")
>>                         ,"  MemberOf:", pick-first-value(member_of, "(none)")
>>                         ,"  PoolType:", pick-first-value(pool-type, "(none)")
>>                         ,"  Lease:", pick-first-value(binary-to-ascii(10,32,"",encode-int(lease-time,32)), "(none)")
>>                         , is-static
>>                 )
>>         );
>> }
>>
>> And from my log file you can see a 'Host:(none)':
>> Sep 17 18:41:22 apinetstore dhcpd: fancy bits in fqdn option
>> Sep 17 18:41:22 apinetstore dhcpd: DHCPDISCOVER from 00:20:4a:f3:c5:a7 (CF3C5A7) via lan10
>> Sep 17 18:41:23 apinetstore dhcpd: DHCPOFFER on 10.98.1.72 to 00:20:4a:f3:c5:a7 via lan10
>> Sep 17 18:41:23 apinetstore dhcpd: fancy bits in fqdn option
>> Sep 17 18:41:23 apinetstore dhcpd: Host:(none) VendorId:(none)  MemberOf:10.Microsoft PoolType:10.Microsoft  Lease:21600
>> Sep 17 18:41:23 apinetstore dhcpd: DHCPREQUEST for 10.98.1.72 (10.96.0.9) from 00:20:4a:f3:c5:a7 via lan10
>> Sep 17 18:41:23 apinetstore dhcpd: DHCPACK on 10.98.1.72 to 00:20:4a:f3:c5:a7 via lan10
>>
>> Where does the host name CF3C5A7 come from?
>>
>> TIA,
>> Bill
>>
>> _______________________________________________
>> dhcp-users mailing list
>> dhcp-users at lists.isc.org <mailto:dhcp-users at lists.isc.org>
>> https://lists.isc.org/mailman/listinfo/dhcp-users
>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users

Yes, the name CF3C5A7contains the last four digits of the MAC address.  I still don't understand how this device got its 
name nor why it's not reported in the log statement.

Bill

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20140917/e2c29d4f/attachment.html>


More information about the dhcp-users mailing list