My physical setup is:
DMZ (SERVER) (192.168.1.1)
|
|
WAN ——— ROUTER (1.2.3.4, 192.168.1.254) ——— LAN
LAN adresses are assigned by DHCP. The router assigns this config:
- IP: 192.168.1.x/24
- GW: 192.168.1.254
- DNS1: 192.168.1.1
- DNS2: 8.8.8.8
I have the server configured and running properly as a DNS proxy with an exception of it's hostname, for which it returns 192.168.1.1
. The purpose of this setup is, that the server is available on the same hostname from either WAN or LAN.
The problem is, that my system ignores this DNS setup. I've tried flushing DNS in the system and the browser, but non of these works. Manual DNS queries works as expected, but as far as the application does the query, it uses wrong address.