I have an Azure Virtual Network myVNET
. In myVNET
, I have a vm deployed. I also have one Azure Public DNS Zone i.e. test
. Along with it, there is also an Azure Private DNS Zone with the same name test
. The private dns zone test
is linked with myVNET
.
The public dns zone has an A
record i.e. external.test
which is pointing to a public ip, lets say x.x.x.x
The private dns zone has an A
record i.e. internal.test
which is pointing to a private ip, lets say y.y.y.y
The vm has an application running. When I try to invoke internal.test
, it correctly resolves the ip i.e. y.y.y.y
. But when I try to invoke external.test
, although it is present in public DNS zone, the resolution fails because lookup happens on private dns zone where the external.test
record is not present.
I know that if I make the entry for external.test
in private dns zone, it would work. However, if I don't want to do that, is there any way in Azure to configure it in such a way that for test
dns zone, if a record is not found in private dns zone, it would lookup in public dns zone? Is there any solution using Azure DNS Private Resolver
for the same?