How to change DNS on Putty

Hello,
I have been using OpenWRT for about 3 years, and have decided to change my DNS to Google's but I have a question as on to how I could use Putty to change the DNS of my router. As I don't know how to change this, and got someone else to do this for me.
Thanks!
(PS if anything is confusing or not there's not enough information, please tell me, thanks!)

You can do this under the luCi Admin interface much easier:

Go to Network->DCHP and DNS->DNS forwardings

If you really want to do it in SSH:

uci del dhcp.@dnsmasq[0].server
uci add_list dhcp.@dnsmasq[0].server='8.8.8.8'
uci add_list dhcp.@dnsmasq[0].server='8.8.4.4'
uci commit dhcp

For CloudFlare:

uci del dhcp.@dnsmasq[0].server
uci add_list dhcp.@dnsmasq[0].server='1.1.1.1'
uci commit dhcp

Ok thank you

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.