Hello,
I have the following case in one of my client’s network.
//
NOTE: I can put only two links in my post
So this is MY_IP variable, I’ll use below: 192.168.50.123
//
There is a server with IP: MY_IP. This is a Windows serve with two roles.
Firstly, there is a web app installed on this server that should return some data under /test endpoint: https://mydomain.com/test.
Secondly the same MY_IP server is also a DNS server for the local network. It pops out in WAM configuration from DHCP as a main DHCP server. And it’s responsible to point mydomain[dot]com domain exactly to itself.
Now, when I hook up my computer (Macbook) to this local network I can easily reach this domain and execute the endpoint. There is no issue at all. In between of my computer and the server are a couple of routers from client’s network.
But when I hook up additional Teltonika RUT301 router between my computer and client’s network the domain is not resolved at all. “nslookup” command returns error of not resolved host.
Rebooting (both computer and router) or clearing DNS on Macbook didn’t help. I’ve tried it multiple times.
To fix the issue I had to manually declare IP MY_IP as a route to mydomain.com in Network → DNS → Static addresses settings.
After that it works perfectly fine.
I’m quite sure it’s related to the same server handling the domain and being a DNS, but Macbook is handling that when no Teltonika router is in between.
I’m just wondering why it’s happening?