Change dns by ssh or telnet

How in telnet or ssh to change dns 1.1.1.1 1.0.0.1 to other

uci -q delete network.wan.dns
uci add_list network.wan.dns="1.1.1.1"
uci add_list network.wan.dns="1.0.0.1"
uci -q delete network.wan6.dns
uci add_list network.wan6.dns="2606:4700:4700::1111"
uci add_list network.wan6.dns="2606:4700:4700::1001"
uci set network.wan.peerdns="0"
uci set network.wan6.peerdns="0"
uci commit network
/etc/init.d/network restart
3 Likes

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