I have web server on static IP 192.168.0.2. I made access to it by http://site.com from internet via NAT rule. But in Local network i need to type http://192.168.0.2 instead of http://site.com. Please help me fix it. I want to type http://site.com and get access in local network too.
Well you can try to add a DNS rule in the router’s DNS Static rules with:
/ip dns static add address=192.168.0.2 name=www.example.com
This way if your computer has the router’s IP in the DNS section of your computer’s network configuration, and nothing else, when you will type http://www.example.com from LAN the DNS resolv will come directly from the router as 192.168.0.2.