TechBuzzPro

Change DNS Settings on OpenWrt IoT Gaming Router

· 5 min read · Gaming

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Changing the DNS servers on your OpenWrt router replaces the default DNS (usually your ISP's) with faster, more private, or more secure options like Cloudflare, Google, or Quad9. This can reduce latency for gaming, improve privacy, and sometimes bypass local DNS issues. You’ll need access to the router’s LuCI web interface (the admin panel). If you haven’t already, log in to your router at its IP address (commonly 192.168.1.1) using the admin username and password.

What You'll Need

  • OpenWrt router with LuCI web interface (most installs have it)
  • Admin credentials for the router
  • A computer or phone connected to the router’s network
  • Optional: a note of your current DNS settings (to revert later)

Step-by-Step

  1. Log into LuCI. Open a browser, go to your router’s IP address (e.g., http://192.168.1.1), and enter your username and password.
  2. Go to Network > Interfaces. In the left sidebar, click Network, then Interfaces. You’ll see a list of interfaces (usually LAN, WAN, and possibly WAN6).
  3. Edit the WAN interface. Click the Edit button next to the interface that connects to your modem/internet (usually named WAN). This is where your ISP’s DNS settings are applied.
  4. Open the Advanced Settings tab. In the interface edit screen, click the Advanced Settings tab. Look for a field labeled Use custom DNS servers (or sometimes just DNS servers).
  5. Enter your preferred DNS servers. Type the IP addresses separated by spaces. For example, for Cloudflare: 1.1.1.1 1.0.0.1. For Google: 8.8.8.8 8.8.4.4. You can also use IPv6 if your ISP supports it, but IPv4 is fine for most.
  6. Save & Apply. Click Save at the bottom, then click Save & Apply to commit the changes. The router will apply the new DNS settings, and your devices will get the new DNS via DHCP (if DHCP is set to hand out the router’s DNS).
  7. Verify the change. On a device connected to the router, open a command prompt or terminal and run nslookup example.com (Windows) or dig example.com (Linux/macOS). Look for the “Server” line – it should show your router’s IP (e.g., 192.168.1.1) and the “Address” should be the new DNS server you set. Alternatively, you can check the router’s status page: go to Status > Overview and look under “DNS” or “DNS servers”.

Note: Menu labels may differ slightly depending on your OpenWrt version (19.07, 21.02, 22.03, etc.) and theme, but the path is generally the same. If you don’t see “Use custom DNS servers”, look for a field named “DNS” or “DNS servers” in the same Advanced Settings tab.

Common Mistakes

  • Editing the LAN interface instead of WAN. Changing DNS on LAN affects only the router’s own DNS, not what devices get. Always edit the WAN interface for internet-facing DNS.
  • Forgetting to Save & Apply. If you only click “Save”, changes are not applied. Always click “Save & Apply”.
  • Using only one DNS server. If that server goes down, you lose DNS. Always add at least two.
  • Typing commas or semicolons. DNS servers should be separated by spaces, not commas.
  • Not restarting devices. Existing devices may keep old DNS until they renew their DHCP lease. Reconnect or reboot them to pick up new DNS.

Tips

  • For gaming, choose a DNS provider with low latency to your region. You can test with tools like dnsperftest or just try Cloudflare (1.1.1.1) or Google (8.8.8.8).
  • If you also want to use DNS-over-TLS or DNS-over-HTTPS, OpenWrt supports it via the https-dns-proxy or dnsmasq configuration, but that’s more advanced. The basic change above is sufficient for most.
  • Write down your original DNS settings (often blank, meaning ISP default) so you can revert if needed.
  • You can also set DNS on the LAN interface if you want to override what devices get, but that’s less common.

Troubleshooting

If the change doesn’t work or causes problems, here’s what to do:

  • Check if the DNS servers are reachable. From a device, try ping 1.1.1.1. If you get no response, your ISP might be blocking it, or the server is down.
  • Revert to automatic. Go back to the WAN interface, clear the “Use custom DNS servers” field, and Save & Apply. This restores ISP DNS.
  • Renew DHCP lease. On your device, disconnect and reconnect to Wi-Fi, or run ipconfig /release and ipconfig /renew (Windows) or sudo dhclient -r and sudo dhclient (Linux).
  • Restart the router. Sometimes a full reboot helps clear any stale DNS cache.
  • Check if DNS is being overridden. If you have a VPN or ad-blocker on the router, it might override DNS. Disable them temporarily to test.

Frequently Asked Questions

Will changing DNS improve my gaming latency?

Possibly, but not always. DNS only affects the time it takes to resolve domain names (like game server addresses). Once connected, the game uses the IP directly. If your ISP’s DNS is slow, a faster DNS can reduce initial connection time, but it won’t reduce in-game ping.

Can I use DNS-over-HTTPS (DoH) on OpenWrt?

Yes, but not through the basic interface. You need to install a package like https-dns-proxy or configure dnsmasq with DoH. That’s more advanced and beyond this guide.

What are the best DNS servers for gaming?

Cloudflare (1.1.1.1) and Google (8.8.8.8) are popular for speed and reliability. Quad9 (9.9.9.9) offers security filtering. You can test which is fastest for your location.

Will this affect all devices on my network?

Yes, because the router hands out its own IP as DNS via DHCP, and the router then uses the custom DNS you set. All devices that get DHCP from the router will use the new DNS.

I changed the DNS but my devices still show old DNS. Why?

Devices cache DNS and may hold onto old settings until the DHCP lease renews. Reconnect the device to Wi-Fi, or reboot it, to force a new lease.

Can I set different DNS for different devices?

Yes, but not through the basic WAN setting. You’d need to set static DHCP leases and assign DNS per device, or use dnsmasq’s advanced options. That’s more complex.