Resolve name problem

Hello. I have this problem - I use Mikrotik in my network and I have some servers in this network. The network is 192.168.0.0/24. I have a VPN access from outside. In the network I have 2 very important servers - on IP 192.168.0.11 and 192.168.0.12. Their names are name1 and name2. When I try to resolve them they resolve correctly. When I ping the IP i have reply. When I ping the name I have time out for no such host. But when I type nslookup name1 it says it’s IP 192.168.0.11. The thing is that I need to access through web browser with the name (not the IP) because of the services I have installed on the servers. When I access through IP everything is fine. But when I type the name - nothing. I checked the configuration many times and it seems to be fine. Can you help me with this problem?

Try using this:
/ip dns static add name=name1 address=192.168.0.11
/ip dns static add name=name2 address=192.168.0.12
This only affects the dns inside the router. All outside see those as the IPs your public dns server issues.

I tried this to enter the IP and the names static but there is still the problem.

You are using a FQDN-type name, like name1.com, or name1.net, etc. Not just name1, correct? That will work with ssh and telnet, but I cannot get that to work with a web browser.

I’ve the same situation.
My solution:
On the main server, startup Wins server
On the DHCP on MTK include Wins addres
Allow Net-bios on the firewall.
All names are working perfectly

Hope help you.
Regarsd,