[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DNS problems on Raspberry Pi 400 (Debian 10.9)



On 3/31/21 2:44 PM, Greg Wooledge wrote:
On Wed, Mar 31, 2021 at 01:42:36PM +0200, Moritz Kempe wrote:
grep ^hosts: /etc/nsswitch.conf
--
hosts:          files mdns4_minimal [NOTFOUND=return] dns mymachines
I don't know what "mymachines" is.  I don't see it in the man page.

What happens if you get rid of the "mymachines" field?

I have restarted my device with "mymachines" commented out.

It seems like, it behaviors the same.

-rw-r--r-- 1 root root 54 Mar 31 13:28 /etc/resolv.conf
domain fritz.box
search fritz.box
nameserver 10.0.0.1
You're using a local caching resolver, or at least something that
forwards requests.  That's fine, if it works.  You might try probing
the DNS resolver at 10.0.0.1 to see whether it actually does work.

Do you mean like so?

--

moke@rpi4-20201112:~$ dig @10.0.0.1 debian.org

; <<>> DiG 9.16.13-Debian <<>> @10.0.0.1 debian.org
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 13415
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;debian.org.            IN    A

;; ANSWER SECTION:
debian.org.        300    IN    A    149.20.4.15
debian.org.        300    IN    A    130.89.148.77
debian.org.        300    IN    A    128.31.0.62

;; Query time: 351 msec
;; SERVER: 10.0.0.1#53(10.0.0.1)
;; WHEN: Wed Mar 31 15:11:15 CEST 2021
;; MSG SIZE  rcvd: 87
--

(There's a really good chance that 10.0.0.1 is your router, and that
your router implements a forwarding nameserver, which just passes
your requests to your ISP.  These router-based forwarding resolvers
can be a bit flaky sometimes.)
Yes, 10.0.0.1 is my router.
; <<>> DiG 9.16.13-Debian <<>> @8.8.8.8 www.debian.org
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 20269
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;www.debian.org.            IN    A

;; ANSWER SECTION:
www.debian.org.        229    IN    A 130.89.148.77
www.debian.org.        229    IN    A 149.20.4.15
www.debian.org.        229    IN    A 128.31.0.62

;; Query time: 35 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Wed Mar 31 13:38:10 CEST 2021
;; MSG SIZE  rcvd: 91
That's good.  At least you're not blocking UDP packets or something like
that.  If the weird entry in nsswitch.conf doesn't turn out to be the
problem, and 10.0.0.1 turns out to be non-functional in some way, you
could use Google's resolvers as a fallback.

Yes, i could add a fallback resolver to every device but the advantage of the router is, that you can set a dns server for a whole network which is a feature i do not want to miss. Also is there still the question, why Debian on the Raspberry Pi 400 can't use a dns server, which can be used by all other devices.


Reply to: