RDP to an Alias
I have a server that has since been decommissioned and I have some services that have been moved over to another server however these servers still point to the old server so I have set up a Cname for the old server to the new one, however when I try to RDP to the old server surely it should redirect me to the new server. But I constantly get the below error.
"The connection cannot be completed because the remote computer that was reached is not the one you specified. This could be caused by an outdated entry in the DNS cache. Try using the IP address of the computer instead of the name."
I know using the IP will work as this has been tested, but short of putting it in the host file of the machine that hosts the services I am at a loss.
Steps I have tried:
- FlushDNS on both target,DNS server and Local Server
- Checked time and confirmed that both are correct
- Added a SPN for the old server that points to the new one
Any ideas on this would be great.
I don't think it's a Kerberos issue. Funny enough, Kerberos isn't used for RDP.
But RDP uses TLS for security. A CN in the certificate is a server FQDN (in terms of a domain). So, when you connect to alias, an (alias) name you're connecting to doesn't match a (real) name in the certificate and system says "the computer is not the one you specified". The solution may be to recreate certificate used for RDP, adding a SAN (subject alternative name) which would contain both "real" name and "alias" name, so both of them would be valid.