I have Mikrotik Router with OS v6.36.1. I have set:
IP → DNS → Static for 5 domains to IP of local web server. Each of these domains has DNS records in Dreamhost’s DNS servers to remote IP of my router.
IP → DHCP Client - Use Peer DNS - yes. Now IP → DNS shows me 2 Dynamic servers from internet provider (194.xx.xx.5/194.xx.xx.7).
When I’m trying to access any of 5 domains from Static rules from my Ubuntu PC (dig …) it randomly resolves to server local IP/remote IP of my router. Checked dnsmasq logs and found it trying to resolve address not only from my router’s DNS server (192.168.0.1), but from internet provider’s DNS servers too (194.xx.xx.5/194.xx.xx.7). Because I have not set NAT masquerading for local requests, browser sometimes shows the web page and sometimes fails (when DNS resolves to remote IP).
How Static DNS records can work at all if my PC gets 3 DNS servers from DHCP and randomly chooses which servers’ result to use?