Having a strange issue with Azure vm's and pvs (particularly server 2025). Occasionally, the target devices will not get dns information from the vnet, resulting in a lack of domain connectivity. if using 'custom dns on the nic of the target device, it works consistently.
j
Jeff Riechers
08/05/2025, 2:27 PM
We have seen this as well. Custom DNS to your domain controlled dns is preferrable.
s
Shane Swacus
08/05/2025, 2:41 PM
well thats going to be a pita 😉
j
Jeff Riechers
08/05/2025, 2:43 PM
You get set it on the subnet itself, then the dhcp for azure delivers your dns instead of their dns
s
Shane Swacus
08/05/2025, 2:49 PM
on the subnet or vnet? I thought you could only do it on the vnet or the nic. we currently have it set up on the vnet as 'custom' but thats where i see the problem occurring.
j
Jeff Riechers
08/05/2025, 2:54 PM
You are correct. vnet. So on my small azure lab I have my on-prem dns servers on the vnet, and when I bring up my opnsense vpn to link azure to onprem all my windows machines just resolve locally.
s
Shane Swacus
08/26/2025, 1:19 PM
just an update to this: Microsoft is still taking their time analyzing things. For now, my workaround is a bat file that runs on startup to flushdns, ipconfig /renew, gpupdate /force