Remote access and local access same hostname
- by cpf
Hi serverfault,
I have a server in a clients network, seperated from theirs with a router/firewall, the intention is to have this server available through one hostname (example.com)
My idea is to have (at least) a DNS server in the outside, to have outside (out of the clients' network) access the internal server. The problem would at that point be the internal client (PC A)
My question: What would I have to do to make something like this work? Is it even possible or already done? The goal is to not have to change anything on either PC A or PC B, while both should access the same "internal server" while surfing to "example.com"
Perhaps adding logic to the DNS server would work (Detect the external IP of internal client [PC A] is the same as the IP for example.com - Give the local IP as reply?)
Anyhow: Thanks for helping me think on this!