DHCP option by rule

Hi,
is there a way how to add different dhcp options to different clients ? For example, I’ll have list of host, by MAC address or hostname, and I want to assign for hosts in this list different DNS server and different boot file. All hosts, filtered and not filtered will use same vlan. I’m not sure, if something like that is implemented in RouterOS.

I know, that there is dhcp lease script, but I’m not sure if this script is called before or after dhcp options are sent to host, and If I’m able to modify this options.

Example:
host android-2e21a18ae7a87f84 will have DNS server 192.168.2.1
host Kitchen will have DNS server 192.168.2.5

Thank You.

The lease script is fired after the lease is bound.
Either way you approach it - you would need static leases to assign the right options to the right clients.
Once your lease is static, you can adjust all options or select predefined option sets.
-Chris

This is way too.
Thank You

You can also use RADIUS to do this:

See
https://wiki.mikrotik.com/wiki/Manual:IP/DHCP_Server#RADIUS_Support

and

https://wiki.mikrotik.com/wiki/Manual:RADIUS_Client#Supported_RADIUS_Attributes

Regards
Nick

Or use vendor class id to give specific option sets based on ID client is sending.