I have two Microtik routers. See attached network diagram. Router1 serves as interface to the internet from 10.0.0.0/23 network. Private IP address is 10.0.0.254. Router2 used to create another subnet for 10.1.0.0/23 network.Router2 IP is 10.0.0.250 on the one side of the network and 10.1.0.254 on the other side. I am experiencing the following problem. When trying to ping the DNS server by name from the 10.1.0.0/23 network from the client I get no response. However - I am able to ping DNS server by IP. I can ping the Client PC by name and IP from the server.
I added a NAT masquerade rule on Router2 and then can ping by both IP name and address. Not sure why this works however. What is the correct way to set this up?
Try that while disabling the masquerade on router2, making sure the masquerade rule on router1 is set so that it actually also masquerades the 10.1.0.0/24 range to the Internet.
When trying to ping the DNS server by name from the 10.1.0.0/23 network from the client I get no response.
Probably the DNS server for the 10.1.0.0/24 network is set to router1; as it doesn’t know how to reach 10.1.0.0/24 computers, it doesn’t know where to send the DNS answers.
I did setup a route for Router 1 so that was not the issue. Could this be some type of firewall issue? I dont have any firewall rules defined in Router 2.