Ok lets summarize.
You have one or several domains hosted on a box in a VPN network. For these domains, you have dns entries on a dns server somewhere on internet that point to your router's public IP. Your router is set up to forward port 80 on the machine hosting the web server. When you try to acces these domains from your local network, you get redirected to your router config webserver (if it has one).
The solution I have here is (:
- set your local DNS server as primary server for all machines (at least those that should get access to the local web server) on your local network
- in your DNS server, declare primary zones for each domain hosted locally pointing to the local IP on your LAN and forward all other DNS requests to your router/isp/other DNS server (see "forwarders" config parameter in bind9 global config).
|