Sure, here you go:
root@KAR02SRV01:~# cat /etc/resolv.conf
nameserver 127.0.0.1:5335
root@KAR02SRV01:~# ping -c 1 -W 10 dietpi.com
PING dietpi.com (104.21.44.30) 56(84) bytes of data.
64 bytes from 104.21.44.30 (104.21.44.30): icmp_seq=1 ttl=57 time=21.9 ms
— dietpi.com ping statistics —
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 21.923/21.923/21.923/0.000 ms
root@KAR02SRV01:~# ping -c 1 -W 10 -4 dietpi.com
PING dietpi.com (172.67.194.85) 56(84) bytes of data.
64 bytes from 172.67.194.85 (172.67.194.85): icmp_seq=1 ttl=57 time=27.3 ms
root@KAR02SRV01:~# dig @127.0.0.1 dietpi.com
dig: parse of /etc/resolv.conf failed
root@KAR02SRV01:~# dig dietpi.com
dig: parse of /etc/resolv.conf failed
root@KAR02SRV01:~#
Now, here are the output of another SBC where it all works OK (I suppose):
root@karpidns:~# cat /etc/resolv.conf
nameserver 127.0.0.1:5335
nameserver 127.0.0.1
root@karpidns:~# ping -c 1 -W 10 dietpi.com
PING dietpi.com (172.67.194.85) 56(84) bytes of data.
64 bytes from 172.67.194.85 (172.67.194.85): icmp_seq=1 ttl=57 time=15.6 ms
— dietpi.com ping statistics —
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 15.556/15.556/15.556/0.000 ms
root@karpidns:~# ping -c 1 -W 10 -4 dietpi.com
PING dietpi.com (104.21.44.30) 56(84) bytes of data.
64 bytes from 104.21.44.30 (104.21.44.30): icmp_seq=1 ttl=57 time=15.0 ms
— dietpi.com ping statistics —
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 15.020/15.020/15.020/0.000 ms
root@karpidns:~# dig @127.0.0.1 dietpi.com
; <<>> DiG 9.11.5-P4-5.1+deb10u6-Debian <<>> @127.0.0.1 dietpi.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8183
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;dietpi.com. IN A
;; ANSWER SECTION:
dietpi.com. 165 IN A 172.67.194.85
dietpi.com. 165 IN A 104.21.44.30
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Jan 11 17:08:28 CET 2022
;; MSG SIZE rcvd: 71
root@karpidns:~# dig dietpi.com
; <<>> DiG 9.11.5-P4-5.1+deb10u6-Debian <<>> dietpi.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62479
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;dietpi.com. IN A
;; ANSWER SECTION:
dietpi.com. 127 IN A 104.21.44.30
dietpi.com. 127 IN A 172.67.194.85
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Jan 11 17:09:06 CET 2022
;; MSG SIZE rcvd: 71