DNS server IP addresses can be passed to hosts on a network by adding options to LAN interface DHCP settings.
Navigate to Network -> LAN section. Under DHCP server section, select Advanced Settings tab. There you need to set 6, 10.10.10.1 in DHCP options.
6 stands for DNS server.
Below are a couple of CLI/SSH options that could also be used to modify DNS forwardings:
- file /etc/config/network
- A dns_metric option can be added to prioritize DNS servers. 0 means highest priority. For example:
config interface 'wan'
option dns_metric '100'
- file /etc/config/dhcp
- you can add strictorder option, meaning that then servers will be used one by one as ordered in resolv file. Example:
config dnsmasq
option strictorder '1'