Internal DNS troubles

Hi Forum.
I’ve have a little problem which I cannot solve by my self.

I’ve created my own firewall based on a mikrotik CCr1009.
I have created the following networks
LAN → 172.16.100.0/23
DMZ → 192.168.100.0/24

What I’m trying to is Accessing the servers in DMZ using FQDN. → test.example.com
If I used my IP-address for the server directly - I’m getting through to webinterface on the machine. but not using the FQDN
I’ve tried to set up static DNS for the host - but still not working

Flags: D - dynamic, X - disabled, R - regexp
 #     NAME               ADDRESS                          TTL
 0     test.example.com    192.168.100.50                1d

nslookup test.example.com – Gives WAN ip
ping test.example.com – Gives WAN ip

http://test.example.com → could not connect to website

How Can I make this work - so that I’m able to use FQDN from LAN to DMZ

Thanks
P

If you set static address in your router’s DNS cache and client sees another one, it’s probably configured to use some other DNS resolver.

Since your DMZ is a separate network, you could configure your DSTnat rules to work coming from either the WAN or the LAN side, and it won’t require pinholes. This way, you won’t have to maintain two “views” for DNS.