I have host h1 running a few services. It registers with a central server and the server requires its FQDN and IP. I can specify any FQDN here. At run time, if h1 were to be replaced with another host h2 then the server would reject h2 because its FQDN and IP are different than what are registered with the server.
All hosts are part of same subnet and are never exposed to internet.
So, I was hoping (with my very limited networking knowledge) that I can try something like this?
- Use FQDN f1 at registration time with central server.
- In DNS assign a FQDN (f1) with A record mapping to a IP which points to h1.
- When replacement is needed, update this IP to point to h2's IP.
Some basic questions, I am having:
- Would this approach work?
- Do I need a VIP here?
- Would individual hostnames of h1 and h2 not cause conflicts with fqdn in DNS?
- Can CNAME help better with FQDNs?
Thank you!