You are deploying an Azure DNS Private Resolver in a hub VNet (10.0.0.0/16, IPv4 only) in East US. The resolver needs one inbound endpoint and one outbound endpoint.
The hub VNet already contains a subnet named snet-identity (10.0.1.0/26). It hosts two domain controller VMs that must stay in it. The hub address space is shared by many teams, so the design must consume the least address space possible.
Which supported subnet layout should you use for the resolver endpoints?
The inbound and outbound endpoints require separate subnets reserved for resolver use and delegated to Microsoft.Network/dnsResolvers. Two /28 subnets satisfy the minimum size while consuming the least address space. The existing identity subnet cannot be used because its domain controller VMs must remain there.
- Correct: Two new /28 subnets, each delegated to Microsoft.Network/dnsResolvers, one per endpoint. Each endpoint gets its own dedicated, delegated subnet. /28 is the minimum supported size and is enough for current endpoint limits, so this layout uses the least address space.
- Not correct: Two new /29 subnets, each delegated to Microsoft.Network/dnsResolvers, one per endpoint. Resolver subnets must be at least /28, so /29 subnets are not supported even though they use less space.
- Not correct: Two new /27 subnets, each delegated to Microsoft.Network/dnsResolvers, one per endpoint. /27 is a valid size, but /28 is the minimum and is enough for current endpoint limits. /27 subnets use more of the shared address space than needed.
- Not correct: One new /28 subnet delegated to Microsoft.Network/dnsResolvers, shared by both endpoints. Multiple resolver endpoints cannot share a subnet. The inbound and outbound endpoints each need their own dedicated subnet.
- Not correct: Delegate snet-identity for the inbound endpoint and a new /28 subnet for the outbound endpoint. A resolver endpoint subnet must be dedicated to Microsoft.Network/dnsResolvers and cannot be used for other services. The domain controller VMs must remain in snet-identity, so that subnet cannot host an endpoint.
- Azure DNS Private Resolver OverviewMicrosoft Learn
- DNS security and private name resolutionMicrosoft Learn