Wrong dns...

I have devices that take the gateway as dns.
How do I stop them from doing so.

Is there a setting in routeros that causes this?

Assuming you’re using a DHCP server, it’s in “/ip dhcp-server network”.

Whether you’re using a DHCP server or not, a device could always override those settings. You can disable DNS for everyone by unchecking “allow remote requests” in “/ip dns”.

If you want to let SOME devices use DNS, but not others, you’d need to explicitly check the source IP “/ip firewall filter”, and drop anyone that is not allowed (or better yet, allow some, and drop everyone else).

Thanks, worked like a charm.
Being an empty field those devices took the gateway as dns.