DNS problems - unable to resolve host names

Since installing the latest updates, my router is unable to resolve host names using DNS, nor perform updates. I've checked the entries and can't see where the problem lies. I'd be grateful for any help getting it up and running again. Thanks!

|Model|Raspberry Pi Compute Module 4 Rev 1.0|
|Architecture|ARMv8 Processor rev 3|
|Target Platform|bcm27xx/bcm2711|
|Firmware Version|OpenWrt 22.03.3 r20028-43d71ad93e / LuCI openwrt-22.03 branch git-23.119.80898-65ef406|
|Kernel Version|5.10.161|

root@OpenWrt:~# uci show network; head -v -n -0 /etc/resolv.* /tmp/resolv.*
network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd69:ae6f:d13c::/48'
network.globals.packet_steering='1'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='eth0'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.lan.ipaddr='192.168.10.1'
network.lan.dns='192.168.10.5'
network.lan.dns_search='local'
network.docker=interface
network.docker.device='docker0'
network.docker.proto='none'
network.docker.auto='0'
network.@device[1]=device
network.@device[1].type='bridge'
network.@device[1].name='docker0'
network.wan=interface
network.wan.proto='dhcp'
network.wan.device='eth1'
network.wan.peerdns='0'
network.wan.dns='1.1.1.1'
==> /etc/resolv.conf <==

resolv.conf(5) file generated by tailscale

DO NOT EDIT THIS FILE BY HAND -- CHANGES WILL BE OVERWRITTEN

nameserver 100.100.100.100
search tail.ts.net local

==> /etc/resolv.pre-tailscale-backup.conf <==
search local
nameserver 127.0.0.1
nameserver ::1

==> /tmp/resolv.conf <==
search local
nameserver 127.0.0.1
nameserver ::1

==> /tmp/resolv.conf.d <==
head: /tmp/resolv.conf.d: I/O error

root@OpenWrt:~# traceroute google.com
traceroute: bad address 'google.com'

which dns you should use:

that of the wan ip 1.1.1.1

or that of the lan ip 192.168.10.5

or the one entered in tailscale 100.100.100.100

if you try to use the command:

nslookup www.google.it 1.1.1.1

do you get a valid answer?

for example my configuration is:

cat /etc/resolv.conf
# Interface wan
nameservers 8.8.8.8

then adjust tailscale accordingly

1 Like

/tmp/resolv.conf.d/ is a directory, which is why head failed. Rather, see what file(s), if any, might be inside that directory.

Thanks for your replies guys which pointed me in the right direction.

I removed Tailscale and all is now well.

Thanks again!