Change dns by ssh or telnet

How in telnet or ssh to change dns to other

uci -q delete network.wan.dns
uci add_list network.wan.dns=""
uci add_list network.wan.dns=""
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

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