How to Change DNS on Windows Server DHCP
By [FILL IN], [FILL IN] · Last updated
For networks without Active Directory DNS, hand out FirewallDNS directly through Windows DHCP option 006.
Before you start
You need a FirewallDNS account (see pricing). Sign in to your dashboard, register your public IP address and copy your DNS server addresses. Replace <FIREWALLDNS-PRIMARY> and <FIREWALLDNS-SECONDARY> below with them.
Step by step
- Open DHCP management (dhcpmgmt.msc).
- Expand IPv4 > Scope > Scope Options (or Server Options for all scopes).
- Right-click > Configure Options and tick 006 DNS Servers.
- Remove the existing addresses and add <FIREWALLDNS-PRIMARY> and <FIREWALLDNS-SECONDARY>.
- Click OK. Clients pick up the change at lease renewal; run ipconfig /renew to test.
PowerShell
Set-DhcpServerv4OptionValue -ScopeId 192.168.1.0 -DnsServer <FIREWALLDNS-PRIMARY>,<FIREWALLDNS-SECONDARY>Good to know
- If clients are domain-joined, use the Active Directory forwarder guide instead.
Verify it works
- Renew DHCP on a client (Windows:
ipconfig /renew, macOS: reconnect Wi-Fi). - Run
nslookup example.comand check which server answered. - Open the live log in your dashboard. New lookups should appear within seconds.