Assign a DNS entry for a DHCP device

Hi,

As a previous “dnsmasq” user I found it useful to have an ability to both assign a dynamic IP and to define a hostname to a device in the network based on it’s MAC address.
With “dnsmasq” I could do it without specifying the IP. So the IP will come from the range and the DNS will be set to return the assigned IP when the hostname is requested.
This is done by the "“dhcp-host=[MAC],[hostname]” command.

Is there a way to do something similar in RouterOS? I only saw an option to set a static DHCP mapping and to define static DNS entries. Do I have to assign IPs manually to all devices I want to treat this way?

Regards,
Arik.

This is something I’m tying to figure out too. I cannot seem to set a “hostname” to a client. Something I was able to do in other routers.

Yes, that would be a very useful feature.

You can use scripting in Ros to be triggered whenever DHCP assign an IP.
Read this message which has some valid use case.

http://forum.mikrotik.com/t/yet-another-dhcp-to-dns-script/107005/1

Armando