GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — PrivateLink/DNS-Integration-P2S at master · dmauser/PrivateLink

Expand file tree

/

DNS-Integration-P2S

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

DNS-Integration-P2S

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
azure-vpn-client-dns-client-profile.png
azure-vpn-client-dns-client-profile.png
 
 
azure-vpn-client-dns-vnet.png
azure-vpn-client-dns-vnet.png
 
 
dump-nrpt.png
dump-nrpt.png
 
 
private-endpoint-dns-p2s-vpn.png
private-endpoint-dns-p2s-vpn.png
 
 
readme.md
readme.md
 
 
resolve-dnsname.png
resolve-dnsname.png
 
 
vnet-dns-settings.png
vnet-dns-settings.png
 
 

readme.md

Outline

Private Endpoint DNS integration over Point to Site VPN connection

In this article

Introduction

Assumptions and requirements

Point to Site VPN name resolution behavior

Solution

Introduction

In this post we are going on details on how to make Private Endpoint DNS name resolution work properly over point to site (P2S) VPN connections using Azure Virtual Network VPN Gateway or Virtual WAN VPN Gateway.

Assumptions and requirements

This scenario assumes that you are hosting Private Link PaaS Zone in Azure Private DNS zone, for example: privatelink.blob.core.windows.net used for Azure Blob Storage Account. Also it requires that you have a DNS Forwarder or Proxy to reach respective PaaS Private Link zone.

In order to P2S VPN clients be able to resolve Private Endpoint entries hosted on Azure Private DNS Zones you must leverage an existing DNS Server (Forwarder or Proxy) or deploy one IaaS VM using a DNS Server role. That is required to P2S VPN clients be able to consume Azure Private DNS Zone which is exposed to 168.63.129.16 via DNS Forwarder/Proxy.

👉 Note: this article has been validated with Azure VPN Client at the time of this writing and other VPN clients such and it hasn’t been validated with IPSec/IKE VPN Client (Native Windows 10) or OpenVPN Client.

Point to Site VPN name resolution behavior

By design Azure VPN client will set and use DNS servers that are either set on Virtual Network DNS Server or specified in client XLM profile. In case your Virtual Network is set to use Azure Provided DNS (168.63.129.16) you will not be able to resolve Private Endpoint. In case you don’t want to define DNS at the VNET level, you can still set DNS Server configuration directly on client XLM profile, and set the IP to a DNS Forwarder/Proxy running on Azure. As stated on previous session a DNS Forwarder/Proxy is required to P2S VPN clients be able to resolve endpoints. Another very important consideration, when you validating this solution, is to know that nslookup is not the right tool to make the private endpoint name resolution (DNS) validation over P2S VPN connections. Windows 10 has a feature called Network Resolution Policy Table (NRPT) and VPN connections will add DNS information inside NRPT.

Because Nslookup is not aware of NPTR and you must use PowerShell Resolve-DNSName cmdlet to check DNS name resolution over P2S VPN connections (see examples below of how to do proper DNS name resolution validations).

Solution

Below is diagram with the DNS name resolution flow from P2S VPN connection. The solution is broken down in two solutions where in first configuration is set DNS Server IP (Forwarder/Proxy) on VNET DNS settings, which is the easiest way to implement, and second solution is to specific DNS Server settings directly on Azure VPN client XML profile. The main reason to break down is two solutions is because having DNS settings at the VNET level does not affect only P2S VPN clients but also all resources deployed inside the VNET. Therefore, you may have the flexibility only to set that setting over VPN client XLM profile to only be used by those remote user VPN connections instead of affecting also resources deployed inside the VNET. Below you can review a reference diagram of this solution as well as traffic pattern for DNS name resolution and access to Private Endpoint:

Private Endpoint DNS integration using point-to-site VPN

Solution 1: Specify DNS Server for the Virtual Network

Specify DNS Setting at the VNET level as shown:

VNET DNS Settings

After you save the settings above you a reconnected on Azure VPN Client will trigger it to learn DNS Server settings specified at VNET level as shown:

Azure VPN Client using DNS from VNET settings

Name Resolution Validation

Use PowerShell command:

Resolve-DnsName -Name ["Blob storage account FQDN name"] -DnsOnly

For example, using storage account name is: dmcentralus.blob.core.windows.net output is:

Azure VPN Client using DNS from VNET settings

In case you run nslookup will bring storage account Public IP as output because it does not support NRPT feature.

Solution 2: Specify DNS Server inside VPN Client Profile

Download VPN Client profile to your computer and add DNS settings. Detailed steps can also be found at: How do I add custom DNS servers to the VPN client?

In this article's example I have added the following entries on Azure VPN Client XLM profile:

  <clientconfig>
	<dnsservers>
		<dnsserver>10.100.0.5</dnsserver>
	</dnsservers>
</clientconfig>

Now XLM profile can be imported on Azure VPN Client and here is an example how it going to look like after VPN connection:

Azure VPN Client using DNS from client XLM profile

Validation

Same validation can be done by using as shown in Solution 1:

Resolve-DnsName -Name ["Blob storage account FQDN name"] -DnsOnly

Dump NRPT configuration

In case you want to see NRTP VPN client setting, run Powershell command:

Get-DnsClientNrptPolicy | Format-Table NameSpace, NameServers -AutoSize

Name Resolution Policy Table - NRPT

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.