question

SegunSalami-8476 avatar image
0 Votes"
SegunSalami-8476 asked GitaraniSharmaMSFT-4262 commented

Azure SQL privatelink

Hi,

I created a P2S(VPN) and also a private link for my sql instance, however I cannot connect to my database without adding the database privatelink ip to my hostfile.

I want to use a dns server to resolve host names and not add the ip to my host files

azure-vpn-gateway
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @SegunSalami-8476 ,

Hi @SegunSalami-8476 ,Did the answer work for you? Are there any additional questions to this topic?

If you found the answer helpful, it would be great if you please mark it "Accept as answer". This will help others to find answers in Q&A

----------
Regards
Andreas Baumgarten

0 Votes 0 ·

Hello @SegunSalami-8476 ,

For on-premises workloads to resolve the FQDN of a private endpoint, use a DNS forwarder to resolve the Azure service public DNS zone in Azure. A DNS forwarder is a Virtual Machine running on the Virtual Network linked to the Private DNS Zone that can proxy DNS queries coming from other Virtual Networks or from on-premises. This is required as the query must be originated from the Virtual Network to Azure DNS. A few options for DNS proxies are: Windows running DNS services, Linux running DNS services, Azure Firewall.

Reference : https://docs.microsoft.com/en-us/azure/private-link/private-endpoint-dns#on-premises-workloads-using-a-dns-forwarder

Kindly let us know if the above helps or you need further assistance on this issue.


Please "Accept the answer" below if the information helped you. This will help us and others in the community as well.


0 Votes 0 ·

1 Answer

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered

Hi @SegunSalami-8476 ,

here are different scenarios how to integrate Azure Private Endpoints in DNS:
https://docs.microsoft.com/en-us/azure/private-link/private-endpoint-dns#dns-configuration-scenarios


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.