How to Change DNS on Ubiquiti EdgeRouter (EdgeOS)
By [FILL IN], [FILL IN] · Last updated
Configure EdgeOS DNS forwarding.
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 the CLI or Config Tree.
- Set forwarding servers and disable using WAN DNS.
- Commit and save.
EdgeOS CLI
configure
set service dns forwarding name-server <FIREWALLDNS-PRIMARY>
set service dns forwarding name-server <FIREWALLDNS-SECONDARY>
set service dns forwarding system
delete service dns forwarding dhcp eth0
commit; saveVerify 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.