How to take RDP of Azure VM from Point to site using Hostname

Mahavir Saroj 201 Reputation points
2024-05-23T17:30:06.1433333+00:00

We have created private DNS zone in Azure also we have created host A record for Azure VM. However, while taking RDP from point to site using VM hostname we are encountering some error.User's image

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,421 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ChaitanyaNaykodi-MSFT 23,991 Reputation points Microsoft Employee
    2024-06-04T04:43:07.7833333+00:00

    @Mahavir Saroj

    Thank you for reaching out and apologies for the delayed response here.

    I understand you wish to resolve Azure resources from your client machine via the P2S VPN Gateway.

    The solution tried above will not work in this scenario as IP address 168.63.129.16 because only internal Azure platform can source a message from this IP address. So, in your scenario above you will also have to deploy a custom DNS server is Azure for the name resolution to work.

    Instead of deploying a custom DNS server the recommended solution in this case is to deploy an Azure Private resolver. This service enables you to query Azure DNS private zones from an on-premises environment and vice versa without deploying VM based DNS servers.

    Azure DNS Private Resolver provides the following benefits:

    • Fully managed: Built-in high availability, zone redundancy.
    • Cost reduction: Reduce operating costs and run at a fraction of the price of traditional IaaS solutions.

    You can refer to the following tutorial to implement this scenario.

    This is how the traffic flow will be when an on-premises server issues a DNS request.

    Hope this helps! Please let me know if you have any additional questions. Thank you!

    0 comments No comments