Exposing Private IP Address Only When Connected to Virtual Network in Azure DNS Zone

Shaik Althaf 0 Reputation points
2024-03-12T10:15:38.31+00:00

I am facing an issue where private IP addresses are being exposed to the internet when I perform nslookup due to the presence of both public and private DNS records in a public DNS zone (azureapps.com). I want to restrict the exposure of private IP addresses to only when connected to my virtual network. How can I achieve this without creating a separate private DNS zone? Any insights or guidance on configuring Azure DNS settings to ensure private IP addresses are only visible within the virtual network would be greatly appreciated.

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
675 questions
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,524 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,427 questions
Azure Private Link
Azure Private Link
An Azure service that provides private connectivity from a virtual network to Azure platform as a service, customer-owned, or Microsoft partner services.
504 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KapilAnanth-MSFT 44,921 Reputation points Microsoft Employee
    2024-03-12T12:06:23.0633333+00:00

    @Shaik Althaf ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    Your requirement will not be feasible.

    You are required to have a Private DNS Zone linked to the VNETs for resolving private IP addresses.

    Hope this helps.

    Cheers,

    Kapil

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.