> <mailto:
deblist%2Bde...@moke12g.de>> wrote:
> >> On 3/31/21 1:25 PM, Greg Wooledge wrote:
> >>> On Wed, Mar 31, 2021 at 12:14:59AM +0200, Moritz Kempe wrote:
> >>>> -- Firefox Hmm. We’re having trouble finding that site. We can’t
> >>>> connect to the server at
github.com <
http://github.com>.
> >>>> -- Chromium This site can’t be reachedCheck if there is a typo in
> >>>>
github.com <
http://github.com>. DNS_PROBE_FINISHED_NXDOMAIN
> >>>> moke@rpi4-20201112:~$ host
github.com <
http://github.com>
> Host
github.com <
http://github.com> not found:
> >>>> 2(SERVFAIL)
> >>> grep ^hosts: /etc/nsswitch.conf
> >> --
> >> hosts: files mdns4_minimal [NOTFOUND=return] dns
> mymachines
> > I don't trust multicast dns, so in addition to turning it off
> I've also got
> > $ grep host /etc/nsswitch.conf
> > # hosts: files mdns4_minimal [NOTFOUND=return] dns
> > hosts: files dns
> >
> > Maybe worth a shot?
>
> Changed my /etc/nsswitch.conf to
>
> --
>
> ..
>
> #hosts: files mdns4_minimal [NOTFOUND=return] dns mymachines
> hosts: files dns
> ..
>
> --
>
> and rebooted the system. The behavior hasn't changed.
>
>
github.com <
http://github.com> is still blocked. And dig is still
> able to find the ip address.
>
> Or do i have done something wrong?
>
>
> I have found out, that i can restore some domains when running
> "/sbin/dhclient" as root but not all. Github is still not accessible.
>
>
> That's why I suggested checking for DHCP messages in the logs. But
> also logs upstream from your pi's. Each time you get a DHCP grant,
> potentially you've switched DNS servers.
Do you mean the logs at /var/log/syslog?
And for what i look out for?
Here are some entries, maybe you see something important for this issue.
--
Mar 31 14:39:04 rpi4-20201112 dhclient[5538]: DHCPDISCOVER on docker0 to
255.255.255.255 port 67 interval 7
Mar 31 14:39:11 rpi4-20201112 dhclient[5538]: DHCPDISCOVER on docker0 to
255.255.255.255 port 67 interval 20
Mar 31 14:39:31 rpi4-20201112 dhclient[5538]: DHCPDISCOVER on docker0 to
255.255.255.255 port 67 interval 12
Mar 31 14:39:43 rpi4-20201112 dhclient[5538]: DHCPDISCOVER on docker0 to
255.255.255.255 port 67 interval 19
Mar 31 14:40:02 rpi4-20201112 dhclient[5538]: DHCPDISCOVER on docker0 to
255.255.255.255 port 67 interval 3
Mar 31 14:40:05 rpi4-20201112 dhclient[5538]: No DHCPOFFERS received.
Mar 31 14:40:05 rpi4-20201112 dhclient[5538]: No working leases in
persistent database - sleeping.
-- This was logged for many times.
--
Mar 31 15:05:49 rpi4-20201112 dhclient[478]: Internet Systems Consortium
DHCP Client 4.4.1
Mar 31 15:05:49 rpi4-20201112 dhclient[478]: Copyright 2004-2018
Internet Systems Consortium.
Mar 31 15:05:49 rpi4-20201112 ifup[478]: For info, please visit
https://www.isc.org/software/dhcp/
Mar 31 15:05:49 rpi4-20201112 dhclient[478]: All rights reserved.
Mar 31 15:05:49 rpi4-20201112 dhclient[478]: For info, please visit
https://www.isc.org/software/dhcp/
Mar 31 15:05:49 rpi4-20201112 dhclient[478]:
Mar 31 15:05:49 rpi4-20201112 dhclient[478]: Listening on
LPF/eth0/##:##:##:##:##:## # censored by me
Mar 31 15:05:49 rpi4-20201112 dhclient[478]: Sending on
LPF/eth0/##:##:##:##:##:## # censored by me
Mar 31 15:05:49 rpi4-20201112 dhclient[478]: Sending on Socket/fallback
Mar 31 15:05:49 rpi4-20201112 dhclient[478]: DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 8
Mar 31 15:05:50 rpi4-20201112 NetworkManager[417]: <info>
[1617195950.2281] dhcp-init: Using DHCP client 'internal'
Mar 31 15:05:57 rpi4-20201112 dhclient[478]: DHCPDISCOVER on eth0 to
255.255.255.255 port 67 interval 14
Mar 31 15:05:58 rpi4-20201112 dhclient[478]: DHCPOFFER of 10.0.0.70 from
10.0.0.1
Mar 31 15:05:58 rpi4-20201112 dhclient[478]: DHCPREQUEST for 10.0.0.70
on eth0 to 255.255.255.255 port 67
Mar 31 15:05:58 rpi4-20201112 dhclient[478]: DHCPACK of 10.0.0.70 from
10.0.0.1
Mar 31 15:06:38 rpi4-20201112 dhclient[478]: bound to 10.0.0.70 --
renewal in 3831703 seconds.
--
I used the command "cat /var/log/syslog | grep dhc"
And you said
> But also logs upstream from your pi's.
do you mean the DHCP log from my router? Because i searched for one, but
i haven't found one yet.
Or do you mean that i should use Wireshark to analyze my DHCP requests?
I haven't looked into networking on that level.
I would be nice, if you would give me an explanation or link a website
which could do that.