Remote access and local access same hostname

Posted by cpf on Server Fault See other posts from Server Fault or by cpf
Published on 2010-12-08T23:57:43Z Indexed on 2011/01/04 20:55 UTC
Read the original article Hit count: 216

Filed under:
|
|

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)

example

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!

© Server Fault or respective owner

Related posts about dns

Related posts about server