I have a question regarding DNS:
I have the following setup:
srv-old.example.com | Host(A) | 192.168.1.2 | timestamp
srv-new.example.com | Host(A) | 192.168.1.3 | static
can I just add another static A-Record like the following to achive, that all requests to srv-old.example.com will redirected to srv-new.example.com:
srv-old.example.com | Host(A) | 192.168.1.3 | static
so in summary i will have
srv-old.example.com | Host(A) | 192.168.1.2 | timestamp
srv-new.example.com | Host(A) | 192.168.1.3 | static
srv-old.example.com | Host(A) | 192.168.1.3 | static
Or will this lead to a 50/50 chance to land on the new server when calling srv-old.example.com?
I already tried to edit the already existing non-static A-Record of srv-old.example.com, but it got updated after 1 day (i think by DHCP-Server).
The difficulty is, that srv-old needs to exist some more weeks, so i just cant take it offline and deleting the non-static A-Record will bring nothing in my opinion, because it will be recreated after one day.
I thought about a CNAME-Record like this too:
srv-old.example.com | CNAME | srv-new.example.com
But i think this will cause the same Problem to have a 50/50 Chance to land on the old or new server
Does anyone of you have a hint for me?
(A simple redirect 301 on the old webserver is no option at the moment)