Hello
I have installed OpenWRT 21.02 and cannot ping www.google.com from the router. A look at the /etc/resolv.conf file
shows that this is a link to /tmp/resolv.conf. It only says here:
search lan
nameserver 127.0.0.1
nameserver :: 1
I can temporarily save the file with the contents of /tmp/resolv.conf.d/resolv.conf.auto
fill up, then the name resolution continues until the next reboot of the router.
What can I set on the router so that the correctly configured /tmp/resolv.conf.d/resolv.conf.auto is seen by the router as the default?
The entry /etc/resolv.conf “nameserver 127.0.0.1” says that the router itself acts as a DNS server, but somehow it doesn't work that well.
Thanks for your feedbacks.
I have done your suggests like
config interface 'wan'
option device 'wan'
option type 'bridge'
option proto 'pppoe'
option username 'xxxxxxxxxxxx'
option password 'xxxxxxxxx'
option ipv6 'auto'
option peerdns '0'
list dns '8.8.8.8'
list dns '8.8.4.4'
config interface 'wan6'
option device 'wan'
option proto 'dhcpv6'
option type 'bridge'
option peerdns '0'
list dns '2001:4860:4860::8888'
list dns '2001:4860:4860::8844'
Now the DNS name resolution runs from the connected clients, but not from the router self.
It's the same like 19.07, it's a link lrwxrwxrwx 1 root root 16 Sep 1 00:20 /etc/resolv.conf -> /tmp/resolv.conf
The pings over IP addresses runs well, only the name resolution fails on the router.
# cat /tmp/log/syslog
Wed Oct 6 11:41:15 2021 user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Wed Oct 6 11:41:15 2021 user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Wed Oct 6 12:29:39 2021 daemon.crit dnsmasq[9104]: bad dhcp-option at line 32 of /var/etc/dnsmasq.conf.cfg01411c
Wed Oct 6 12:29:39 2021 daemon.crit dnsmasq[9104]: FAILED to start up
Wed Oct 6 12:29:44 2021 daemon.crit dnsmasq[9163]: bad dhcp-option at line 32 of /var/etc/dnsmasq.conf.cfg01411c
Wed Oct 6 12:29:44 2021 daemon.crit dnsmasq[9163]: FAILED to start up
Wed Oct 6 12:29:49 2021 daemon.crit dnsmasq[9164]: bad dhcp-option at line 32 of /var/etc/dnsmasq.conf.cfg01411c
Wed Oct 6 12:29:49 2021 daemon.crit dnsmasq[9164]: FAILED to start up
Wed Oct 6 12:29:54 2021 daemon.crit dnsmasq[9166]: bad dhcp-option at line 32 of /var/etc/dnsmasq.conf.cfg01411c
Wed Oct 6 12:29:54 2021 daemon.crit dnsmasq[9166]: FAILED to start up