For lan purposes i have created a dns server in my lan that has a fake domain (abc.x). The zone serves for primary, secondary,… for service. The dns server runs in linux and it does not forward anything to upstream dns providers as the domains are local.
I would like to ask if it ia possible to implement it in my Mikrotik router, please.
Short answer: You can’t.
Long answer: It depends on what you mean by “implement it in my Mikrotik router” and how much you’re willing to compromise on functionality.
If you’d like to replace Linux DNS server with RouterOS DNS server, it’s not possible. Only if it would be enough to have just A/AAAA records (and automatically generated PTR records from them), and if nothing would care about the authoritative stuff (flag on answers, SOA record, …), you could do that with static records in IP->DNS->Static.
If you want to keep the server and only allow your clients or router to use your fake domain, without turning your server into full resolver, it’s not supported either. There’s limited (UDP-only, IPv4-only) L7 hack (with some improvements in this thread). So no TCP, no IPv6, and on top of that it will work only for other devices, not the router itself. The last part can be fixed with another even uglier hack, but you need to be really desperate to use that. But still no chance for TCP or IPv6.