For security reasons, I want to be able to connect to a Windows 2008 dedicated web server using Remote Desktop only from one DNS alias. The reason I want to use a DNS alias and not an IP address is that I don't have a static IP address from my ISP, I have a dynamic IP that changes every time I restart the DSL modem.
Your help is much appreciated ...
As far as I am aware, RDP does not send the hostname being connected to in its connection headers. The certificate mismatches you receive sometimes when connecting to hosts is all done client-side.
Because of this, I don't think there will be any way to achieve this. If the hostname does not appear in the TCP packets, then there's no way to filter on it.
It seems to me that the solution is to use a dynamic DNS service to map the "alias" to whatever ip address you get from your ISP. This is no different than using a dynamic DNS service to assist in hosting web and email services on a dynamic ip address.