We had 2 public domains a.com and b.com all point to a public IP 10.244.239.1 which running mikrotik as router.
in Mikrotik → IP-> DNS set dns to our internal server 192.168.1.13 which run Microsoft DNS , and in Microsoft dns I set a.com point to 192.168.1.11, b.com point to 192.168.1.39 , 2 different web iis
But when people access a.com and b.com, they all got website from 192.168.1.11 ( b.com should got website from 192.168.1.39 but not ).
But when people access a.com and b.com, they all got website from 192.168.1.11 ( b.com should got website from 192.168.1.39 but not ).
What people? Internal users that would resolve the DNS name to the correct internal IP?
I’m guessing you mean external users that resolve to the public IP of 10.244.239.1. If that’s the case you probably have a DST NAT rule that translates 10.244.239.1 (which I assume is an obfuscated IP as all of 10.0.0.0/8 is RFC1918) into 192.168.1.11 and then another rule for .39. MikroTik has no mechanism to inspect HTTP host headers and make a determination on which internal host to NAT to.
If you truly want to use a single IP to host multiple web-sites you’ll need to add a proxy that is capable of inspecting the host-header and then forwarding the session onward. This can be useful if you want to have multiple sites for SSL on the same IP. Nginx comes to mind as a product of choice for this type of work.
Alternatively and for HTTP only you can use IIS bindings to inspect the host headers and display the correct page from the same single server.