How to change DNS servers on a Keenetic router
People usually change the DNS servers on a Keenetic for one of a few reasons: to block ads and trackers for the whole network with AdGuard DNS, to use a faster or more private resolver, or to bypass a slow one from the provider. This is a different setting from Dynamic DNS — here you choose which resolver the router asks, not how a name points at your address. Below is how to do it in the web interface and from the command line.
In the web interface
Open the Keenetic web interface at 192.168.1.1 or my.keenetic.net and go to Internet filter (or the connection settings under Internet):
- Turn off automatic DNS from the provider, if it is enabled.
- Add the DNS servers you want — a primary and a secondary address (see the table below).
- Apply the settings. Keenetic also supports DNS-over-HTTPS and DNS-over-TLS profiles in the same section if you want encrypted queries.
From the command line
If you prefer the CLI (over the web console at /a, or via SSH/Telnet), add a name server and save the configuration:
ip name-server 94.140.14.14
system configuration save
Repeat the first command for a secondary address. To remove a server you added by mistake, use no ip name-server <address> and save again.
Popular DNS servers
| Service | Primary / Secondary | Good for |
|---|---|---|
| AdGuard DNS | 94.140.14.14 / 94.140.15.15 | Blocking ads and trackers network-wide |
| Cloudflare | 1.1.1.1 / 1.0.0.1 | Speed and privacy |
| Quad9 | 9.9.9.9 / 149.112.112.112 | Blocking malicious domains |
| Yandex DNS | 77.88.8.8 / 77.88.8.1 | A stable option inside Russia |
How to check it worked
After applying the change, resolve any name from a device on the network and confirm the answer comes back through the new servers. If you also manage a domain, you can look up its live records — NS, A, MX and the rest — with the DNS record checker. Changing the resolver does not touch your zone: to edit a domain's own records you need DNS hosting, and to keep a name pointing at a changing address, Dynamic DNS on Keenetic.
FAQ
Is changing DNS servers the same as DDNS? No. Changing DNS servers tells the router which resolver to use when it looks up names, for example to block ads. Dynamic DNS keeps a name of yours pointing at a changing IP. They are separate features and do not conflict.
Which DNS servers should I choose? It depends on the goal: AdGuard DNS filters ads and trackers, Cloudflare and Quad9 focus on privacy and speed. Access to some foreign resolvers can be unstable depending on your provider, so keep a working fallback.
Do I need a Keenetic account or a paid plan? No. Setting DNS servers is a built-in feature of KeeneticOS and does not require any subscription.
How do I check it worked? After you apply the settings, resolve any name from a device on the network and confirm the router uses the new servers. You can also verify a domain's records with the DNS checker.
Will this break my Dynamic DNS? No. DNS servers and Dynamic DNS are independent, so your DDNS name keeps updating as before.
Changing DNS servers on a Keenetic takes a minute in the web interface, or two commands in the CLI — ip name-server and system configuration save. Pick a resolver by what you need: AdGuard to block ads, Cloudflare or Quad9 for privacy, a local one for stability. It is a separate setting from Dynamic DNS, and the two work side by side.