I want to configure DNS for a wan interface, And I might be having multiple wans.
When the DNS is not configured for a lan interface, the wan which is used for outgoing lookup queries, only that DNS of wan should get used.
I tried with the below configurations.
/etc/config/network
config interface 'lan_lan01'
option type 'bridge'
option dname 'lan01'
option force_link '1'
option disabled '0'
option proto 'static'
option ipaddr '192.168.10.1'
option netmask '255.255.255.0'
option ifname 'eth0.4085 eth4'
config interface 'wan_0'
option ifname 'eth1'
option proto 'dhcp'
option disabled '0'
list dns '8.8.4.4'
/etc/config/dhcp
config dhcp 'lan01'
option interface 'lan_lan01'
option leasetime '10m'
option start '10'
option limit '20'
option ignore '0'
option dhcpv6 'server'
option ra 'server'
option ra_default '1'
option ndp 'server'
/etc/config/firewall
config zone 'wan_0'
option name 'wan_0'
option network 'wan_0'
option input 'DROP'
option output 'ACCEPT'
option forward 'DROP'
option masq '1'
option mtu_fix '1'
So, any lookup queries from lan1 to wan_0 should use 8.8.4.4(configured for wan_0).
But I see the reques is going to 8.8.4.4 and as well as to the upstream router. And if I configure another wan with different dns then this dns also will be queried for lookups.