DNS nameservers are wrong

I'm trying to avoid the use of my isp's nameservers for dns but despite the fact that i've configured 'DNS forwardings' to OpenDNS, my isp is still being used (i think) according to logread:

Tue Sep 24 20:41:11 2019 daemon.info dnsmasq[3850]: 78 192.168.2.194/37144 forwarded 17.client-channel.google.com to 81.139.57.100

How can i ensure that my isp's nameservers are not used?

/etc/config/network

config interface 'wan'
	option peerdns '0'
3 Likes

Thanks. I wonder why that isn't an option in the luci ui?

1 Like

Screenshot%20from%202019-09-24%2014-42-54

5 Likes

It is.

Sorry - i see it now. So it looks like the DNS servers i actually want are configurable in two places ..?

You should only configure in one location. WAN is a usual location.

1 Like

I was thinking of "DHCP and DNS"->"DNS forwardings"

Although it is not wrong to use in case of unconditional forwarding, it is mostly used when you need to forward DNS queries to a custom port or utilize conditional forwarding.
Upstream resolvers are more convenient to set up relying on network interfaces which typically allows to use interface-specific configurations, e.g. independent IPv4 and IPv6 resolvers or connection-specific resolvers.

2 Likes