What is the nuance to setting a DNS server on LAN instead of DNS forwarding?

I noticed the Network -> Interfaces -> LAN -> Advanced Settings has an option to set custom DNS Servers:
image

I followed this example to configure my router to leverage dnsmasq's DNS forwarding feature.

Now I'm curious what the differences and tradeoffs are between these two options. Can you think of different use cases that highlight use of either setting?

In my case, my upstream DNS server maintains a DNSBL (DNS block list) for adblocking. Thus I think I want to use DNS forwarding to ensure the openwrt box does not capture any DNS lookups.

One difference is that the DNS forwarding feature allows you to forward specific domains. But if you don't specify the domain then it's similar to configuring DNS servers on an interface. The difference in this case is that DNS servers on interfaces are automatically added to resolv.conf.auto used by dnsmasq when the interface is brought up, and removed when the interface is brought down.

2 Likes

Ah that clarifies some things for me.
DNS forwarding seems like a more global change.
Setting a DNS server on the interface feels more local.

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