For some reason, we may want to point our RDP server to domain or sub-domain. sometimes we want to host our website on our RDP server. Or we just want to have a remote to the RDP with our domain or sub-domain name. There are 3 steps to do this:
- Open your domain’s DNS hosting panel.
- Add A record in your DNS panel.
- Connect through Remote Desktop Connection with domain or subdomain.
1- Open your domain’s DNS hosting panel.
Each domain has a different DNS management panel. If your domain is not connected to a hosting control panel or CDN like Cloud-flare, you should add A record inside your domain control panel’s DNS management section in order to point RDP. I use Cloud-flare so in this article, we will show how to add A record in the Cloud-flare DNS panel.
2- Add A record in your DNS panel.
Login to your Cloud-flare panel and add A record from the DNS section. When adding the record, you will be asked for a name. If you want to point the domain itself, you don’t need to enter anything there. But if you wish to point a sub-domain, you can write the sub-domain there. And in the IP section, the IP of the server should be entered.
3- Connect through Remote Desktop Connection with domain or subdomain.
Propagating the record takes about 10 minutes to half an hour but it can also take up to some more hours according to your domain name TLD. Ping your domain or sub-domain and once you received a replying ping of the IP of the server, it means the record has been propagated and you will be able to connect to the server through your domain or sub-domain.
Open the Remote Desktop Connection and enter your domain or sub-domain name. Now you will be able to connect to the Windows VPS without entering the IP address.