I think this only started after upgrading OpenWRT to 24.10.
Debian machines (several, including a fresh install from a newer ISO for testing) work with dig and nslookup, but cannot ping, traceroute, wget etc. They are set to the router DNS of 192.168.1.1.
When I change their DNS to something else, like Cloudflare's 1.1.1.1, they work totally fine.
Windows machines are fine, as are Android, iOS, etc.
I did have "HTTPS DNS Proxy" enabled, but I disabled it and the problem persists.
I have tried for hours to troubleshoot this. It doesn't seem likely to be a problem with the Debian settings, because this happens on multiple machines and on a fresh install. One machine is DHCP, another is static IP.
I attach console output from Debian.
user@debian:~$ dig bing.com
; <<>> DiG 9.18.33-1~deb12u2-Debian <<>> bing.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 14732
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;bing.com. IN A
;; ANSWER SECTION:
bing.com. 537 IN A 204.79.197.200
bing.com. 537 IN A 13.107.21.200
;; Query time: 8 msec
;; SERVER: 192.168.1.1#53(192.168.1.1) (UDP)
;; WHEN: Mon Feb 24 14:58:20 GMT 2025
;; MSG SIZE rcvd: 69
user@debian:~$ ping bing.com
ping: bing.com: Temporary failure in name resolution
user@debian:~$ ping openwrt.org
ping: openwrt.org: Temporary failure in name resolution
user@debian:~$ ping ipv4.google.com
ping: ipv4.google.com: Temporary failure in name resolution
user@debian:~$ dig openwrt.org
; <<>> DiG 9.18.33-1~deb12u2-Debian <<>> openwrt.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17106
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;openwrt.org. IN A
;; ANSWER SECTION:
openwrt.org. 3557 IN A 64.226.122.113
;; Query time: 12 msec
;; SERVER: 192.168.1.1#53(192.168.1.1) (UDP)
;; WHEN: Mon Feb 24 14:58:51 GMT 2025
;; MSG SIZE rcvd: 56
user@debian:~$ cat /etc/resolv.conf
nameserver 192.168.1.1
# Changed resolv.conf to Clouflare 1.1.1.1
user@debian:~$ cat /etc/resolv.conf
nameserver 1.1.1.1
user@debian:~$ ping bing.com
PING bing.com(2620:1ec:c11::200 (2620:1ec:c11::200)) 56 data bytes
64 bytes from 2620:1ec:c11::200 (2620:1ec:c11::200): icmp_seq=1 ttl=55 time=5.59 ms
64 bytes from 2620:1ec:c11::200 (2620:1ec:c11::200): icmp_seq=2 ttl=55 time=5.72 ms
64 bytes from 2620:1ec:c11::200 (2620:1ec:c11::200): icmp_seq=3 ttl=55 time=5.72 ms
64 bytes from 2620:1ec:c11::200 (2620:1ec:c11::200): icmp_seq=4 ttl=55 time=5.64 ms
64 bytes from 2620:1ec:c11::200 (2620:1ec:c11::200): icmp_seq=5 ttl=55 time=5.75 ms
^C
--- bing.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4002ms
rtt min/avg/max/mdev = 5.594/5.683/5.747/0.058 ms
user@debian:~$ ping openwrt.org
PING openwrt.org(wiki-03.infra.openwrt.org (2a03:b0c0:3:d0::1a51:c001)) 56 data bytes
64 bytes from wiki-03.infra.openwrt.org (2a03:b0c0:3:d0::1a51:c001): icmp_seq=1 ttl=54 time=20.9 ms
64 bytes from wiki-03.infra.openwrt.org (2a03:b0c0:3:d0::1a51:c001): icmp_seq=2 ttl=54 time=20.0 ms
64 bytes from wiki-03.infra.openwrt.org (2a03:b0c0:3:d0::1a51:c001): icmp_seq=3 ttl=54 time=19.9 ms
64 bytes from wiki-03.infra.openwrt.org (2a03:b0c0:3:d0::1a51:c001): icmp_seq=4 ttl=54 time=19.9 ms
64 bytes from wiki-03.infra.openwrt.org (2a03:b0c0:3:d0::1a51:c001): icmp_seq=5 ttl=54 time=19.9 ms
^C
--- openwrt.org ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 19.862/20.096/20.886/0.395 ms
user@debian:~$ ping ipv4.google.com
PING ipv4.l.google.com (172.217.16.238) 56(84) bytes of data.
64 bytes from lhr48s28-in-f14.1e100.net (172.217.16.238): icmp_seq=1 ttl=117 time=6.22 ms
64 bytes from lhr48s28-in-f14.1e100.net (172.217.16.238): icmp_seq=2 ttl=117 time=5.95 ms
64 bytes from lhr48s28-in-f14.1e100.net (172.217.16.238): icmp_seq=3 ttl=117 time=6.07 ms
^C
--- ipv4.l.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 5.948/6.079/6.215/0.109 ms