Hi @create share I'm not sure where is your deployment, so here there is for Onprem and on Azure:
On-premise:
On your DHCP Scope you can specify the DNS server fo an specific subnet , this will depends how you are setting up the dns configuration on your machines.
On Azure
At vnet level you can specify the dns server target:
Another option is doing at interface level , so you be specify on dns server configuration by VM:
Beside you can use command with the "Set-AzNetworkInterface" PowerShell commandlet to change DNS settings on a network interface. (https://learn.microsoft.com/en-us/powershell/module/az.network/set-aznetworkinterface?view=azps-4.4.0#description)
Or you can use the Azure CLI "az network nic update" cmdlet. ( https://learn.microsoft.com/en-us/cli/azure/network/nic?view=azure-cli-latest#az-network-nic-update)
Cheers,
Luis Arias
If the information helped address your question, please Accept the answer.