currently I am a bit puzzled why the WAN DNS is not propagated to any interface that I have setup.
I have a regular LAN (port 1-3 + wifi) and a VLAN (port 4 only) and for both I need to setup DHCP option 6 in order to have DHCP propagate a DNS Server. If I don’t set this option DHCP does not propagate a DNS at all.
I don’t think I can really help you, but the default is to announce Turris address as the DNS server via DHCP, i.e. DNS WAN is used only indirectly through forwarding. (IIRC plaintext forwarding to WAN DNS is still the default.)
It probably bears down to the hybrid deployments in OpenWrt and the patchset in TOS:
OpenWrt
hybrid DHCPv4/DNS via dnsmasq as default
DHCPv6 via odhcpd as default
(L)UCI for configuration, another hybrid since part of it manipulating the UCI network section and another part the UCI dhcp section
TOS
DHCPv4 via dnsmasq as default
DHCPv6 via odhcpd as default
DNS via kresd by default (dnsmasq for DNS turned off)
Foris for configuration (which not always aligns with UCI) with underlying resolver for DNS configuration
By default in OpenWrt the ISP’s DNS sever is set and can be controlled (peerdns | dns) via (L)UCI in the network section. This glues/ties it with dnsmasq and eventually propagates the DNS server to clients.
Since dnsmasq's DNS functionality is turned off in TOS not every thing done in LuCI applies the same as in OpenWrt.
One can get easily tangled up in all of this hybrid jungle and start wondering what is what. For my part:
not using LuCI or Foris for any network/dns/dhcp configuration
removed dnsmasq
utilise odhcpd for DHCPv4|6 which propagates the local DNS resolver instance to clients
utilise undbound as local DNS resolver instance that does not listen globally but only on the lo and each other dhcp subnet
Interestingly after taking this option out in LUCI it was still working as I have this DNS also set for WAN.
@anon50890781: Thank you! I think this is the explanation why this is happened. I was totally not aware of that. I will keep that in mind when configuring.