We have a server in our LAN which is locally available at a fixed ip. We now have a DDNS Service and a port forwarding rule to make the server available from outside. Additional we added subdomain at our like server.example.com
pointing to server.dyndns.com
.
Now we are able to access the Server from outside the LAN. We now want to be able to access the server.exmple.com
domain from within the LAN. I see two options to do it.
Create a NAT rule for all traffic pointing to the external WAN IP. Since we have more than one this must be created for each WAN Interface wich is a lot of work since i have to do this for each service
Setting up a local DNS Server. Which is not too hard, since we have a Synology NAS which has a built in one, which is already present in the network as secondary DNS Server redirecting to Googles DNS Server. We may need additional subdomains as
server2.example.com
. I thought of a solution where i add a zone for each subdomain. So all the other zones get handled externally and only the internal are addressed by the local DNS Server.
Since i prefer solution number 2 i want to setup the server to redirect server.example.com
to our internal Server but keeping the example.com
domain as it is.
Is there a way to do this in a simple way? Otherwise i would stay with solution 1.