Use HMAC address to map ".lan" dns name

Hello,

I love the “.lan” binding to hostname that was added a few months back and I have been using it quite a bit.
That being said, some devices either don’t advertise a hostname or I can’t control it (DNS name is then either ugly or simply not DNS compatible).
I was wondering, is there was a way to map a given HMAC address to a DNS name? That would make it easy for me to manage my devices and their names.

Thank you.

I think that simplest solution would be to set static address to you device (either by static dhcp lease or by really setting static ip on your device) and then adding this ip address with your desired name (including .lan) to /etc/hosts. So you don’t have to change device’s hostname but you choose its dns name explicitly.