Azure Private DNS Zone

Summary

If you create Virtual Machines that are registered on a specific VNET, and if you allow auto-registration of the VNET in Azure Private DNS Zone, does both the Private and Public IP address appear in the A record?

A friend recently asked me this, I thought I would experiment to find out.

What are A records?

What exactly is an A record? An A record points a domain name to an IP Address.

What happens when you configure a domain?

If you take the scenario where you create two Virtual Machines; one with a Public IP and the other without. Which A records are added to Azure Private DNS Zones.

Create the Virtual Machines

Then create the Private DNS Zone

Finally add a Virtual network Link

The result is both Private IPs are added as A records. Public IPs are never added.

Leave a comment