Short and clean question
domain that can be resolved and accessed from internet as
ip. On host with that
ip we has NAT and virtual machines that hidden behind that NAT. How can we give access to that machines by subdomain names like
Full original question
The problem is that our servers is going to move from our local network to datacenter. So we need some method to access it and we want it in pretty format.
We have two servers (
h1 - windows server 2012,
h2 - centos 7) with virtual machines (
v2, ..), many services (does not matter), registered domain name
domain and one public ip (
Is it possible to set up DNS such as BIND on server
v(x) to provide access to machines and services in a way
ssh h1.domain ping v2.domain
The situation as I see it. When I do
ping v2.domain from local computer. Local resolver will resolve name
ip by outer DNS server (for example it will be
h2). And my computer honestly ping
The presence of BIND DNS server on
h2 will change nothing.
If I set on my local machine
h2 as DNS server. It will be even worse because local resolver will get local ip like 192.168.1.2 that
v2 got from DHCP on
So I got lost. Need help while servers still in local network and we can do any experiments on them.