From LedHed's Wiki
Jump to: navigation, search

Overview

When installing an OpenWRT snapshot, DNS may not be set by DHCP. In order to perform package updates the device will need to resolve DNS.


CLI Commands

uci set network.wan.dns="8.8.8.8 1.1.1.1"
uci commit network
service network reload


Testing

ping openwrt.org

Reference

https://superuser.com/questions/1441257/change-dns-servers-in-an-openwrt-router-from-command-line