I have server in local network with ip 192.168.0.5.
I have domain name server.domein.tld with external IP-address: like 7.7.7.7.
How I can configure mikrotik dns that users in local network when open browser address server.domain.tld open 192.168.0.5. For now I add this server to static in DNS, but ping show external address.
Sorry. I solve this question. I must remove all external DNS server from DHCP server
if you want to make sure, no one can go to a different DNS server, you can use NAT on the router to dst-nat all DNS traffic to the router itself, and let the local resolver deal with them:
/ip firewall nat add chain=dstnat action=redirect protocol=udp dst-port=53 in-interface=LAN place-before=0
(substitute LAN with the name of your internal interface, or use interface-list if you have more internal interfaces)
this way the static entries in the router, and then the DNS servers (auto)configured in the router will be used for name resolution. for this latter method to function you have to enable “allow-remote-requests” ip “/ip dns” on your router, and deal with the consequences of protecting you router (block incoming DNS requests from the outside, so your box will not be used as a DDoS amplifier).