How to Change DNS on Palo Alto Networks (PAN-OS)
By [FILL IN], [FILL IN] · Last updated
Set FirewallDNS as the upstream for the PAN-OS DNS proxy and for the management plane.
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
- Device > Setup > Services > Services: set Primary DNS to <FIREWALLDNS-PRIMARY> and Secondary to <FIREWALLDNS-SECONDARY>.
- Network > DNS Proxy > Add: choose the LAN interface(s) and set Primary <FIREWALLDNS-PRIMARY> and Secondary <FIREWALLDNS-SECONDARY> under Default.
- Network > DHCP > your interface > Options: set DNS to the firewall interface IP (or inherit from the DNS proxy).
- Add a Security policy denying application "dns" from trust to untrust except from the firewall itself.
- Commit.
PAN-OS CLI (configure mode)
set deviceconfig system dns-setting servers primary <FIREWALLDNS-PRIMARY> secondary <FIREWALLDNS-SECONDARY>
commitVerify 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.