How to Change DNS on Sophos Firewall (XG / XGS)
By [FILL IN], [FILL IN] · Last updated
Sophos Firewall uses the DNS settings under Network for itself and DHCP.
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
- Go to Network > DNS.
- Choose "Static DNS" and enter <FIREWALLDNS-PRIMARY> and <FIREWALLDNS-SECONDARY>.
- Go to Network > DHCP, edit the server and set Primary/Secondary DNS to the FirewallDNS addresses (or to the firewall IP if using it as proxy).
- Add a firewall rule blocking DNS from LAN to WAN except to FirewallDNS.
- Apply.
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.