Problema DNS dopo ultimi aggiornamenti.
- Sam9999
- Entusiasta Emergente
- Messaggi: 1983
- Iscrizione: lunedì 9 giugno 2014, 8:59
- Desktop: Studio Xfce
- Distribuzione: Ubuntu 20.04 LTS (Focal)
- Località: BO
- Contatti:
Problema DNS dopo ultimi aggiornamenti.
Ora non è un problema che c'è sempre, ma di certo prima non lo faceva, io spesso lascio il pc acceso che va in sospensione e adesso, dopo il rientro dalla sospensione, connesso, ha problemi di risoluzione DNS, e quindinon navigo (vari browsers) né scarico posta.
QUalche aggiornamento di file di configurazione mi pare lo abbia fatto durante gli aggiornamenti di sistema, ho controllato il file /etc/hosts ed è quello di prima.
S. @-M.
-------------
- thece
- Tenace Tecnocrate
- Messaggi: 12949
- Iscrizione: lunedì 23 aprile 2007, 14:16
- Distribuzione: Debian 12 (Bookworm) - KDE
Re: Problema DNS dopo ultimi aggiornamenti.
se il problema si verifica solamente dopo che hai risvegliato il PC dalla sospensione, molto probabilmente il problema è il Network Manager.
Quando si riferificherà il problema, dai questi comandi, salva i relativi output da qualche parte (un file di testo) e appena possibile postali sul Forum
Codice: Seleziona tutto
ifconfig
route -n
cat /etc/resolv.conf
nmcli device show
ping -c 4 INDIRIZZO_IP_MODEM_ROUTER_ADSL
- Sam9999
- Entusiasta Emergente
- Messaggi: 1983
- Iscrizione: lunedì 9 giugno 2014, 8:59
- Desktop: Studio Xfce
- Distribuzione: Ubuntu 20.04 LTS (Focal)
- Località: BO
- Contatti:
Re: Problema DNS dopo ultimi aggiornamenti.
Codice: Seleziona tutto
Risultato comandi con dns connesso e funzionante
sam@sam-Gnome:~$ ifconfig
docker0 Link encap:Ethernet HWaddr 02:42:34:8d:1b:ed
inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
enp0s10 Link encap:Ethernet HWaddr 00:22:68:65:fa:b5
inet addr:192.168.137.3 Bcast:192.168.137.255 Mask:255.255.255.0
inet6 addr: fe80::ca92:60b2:6409:9ed5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:200 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:23831 (23.8 KB)
enp0s6f1u2u2 Link encap:Ethernet HWaddr 46:c4:64:00:d0:da
inet addr:192.168.9.115 Bcast:192.168.9.255 Mask:255.255.255.0
inet6 addr: fe80::d0f9:aee5:1f76:941f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:168040 errors:0 dropped:0 overruns:0 frame:0
TX packets:96493 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:236337556 (236.3 MB) TX bytes:9833990 (9.8 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:2924 errors:0 dropped:0 overruns:0 frame:0
TX packets:2924 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:209811 (209.8 KB) TX bytes:209811 (209.8 KB)
sam@sam-Gnome:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.9.22 0.0.0.0 UG 100 0 0 enp0s6f1u2u2
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 enp0s10
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
192.168.9.0 0.0.0.0 255.255.255.0 U 100 0 0 enp0s6f1u2u2
192.168.137.0 0.0.0.0 255.255.255.0 U 100 0 0 enp0s10
sam@sam-Gnome:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
sam@sam-Gnome:~$ nmcli device show
GENERAL.DEVICE: docker0
GENERAL.TYPE: bridge
GENERAL.HWADDR: A6:30:84:9D:EF:E0
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: docker0
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1
IP4.ADDRESS[1]: 172.17.0.1/16
IP4.GATEWAY:
IP6.GATEWAY:
GENERAL.DEVICE: enp0s10
GENERAL.TYPE: ethernet
GENERAL.HWADDR: 00:22:68:65:FA:B5
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: Wired connection
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/0
WIRED-PROPERTIES.CARRIER: on
IP4.ADDRESS[1]: 192.168.137.3/24
IP4.GATEWAY:
IP4.ROUTE[1]: dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP6.ADDRESS[1]: fe80::ca92:60b2:6409:9ed5/64
IP6.GATEWAY:
GENERAL.DEVICE: enp0s6f1u2u2
GENERAL.TYPE: ethernet
GENERAL.HWADDR: 46:C4:64:00:D0:DA
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: Wired connection 1
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/2
WIRED-PROPERTIES.CARRIER: on
IP4.ADDRESS[1]: 192.168.9.115/24
IP4.GATEWAY: 192.168.9.22
IP4.DNS[1]: 208.67.222.222
IP4.DNS[2]: 80.80.80.80
IP4.DNS[3]: 208.67.220.220
IP4.DNS[4]: 80.80.81.81
IP6.ADDRESS[1]: fe80::d0f9:aee5:1f76:941f/64
IP6.GATEWAY:
GENERAL.DEVICE: lo
GENERAL.TYPE: loopback
GENERAL.HWADDR: 00:00:00:00:00:00
GENERAL.MTU: 65536
GENERAL.STATE: 10 (unmanaged)
GENERAL.CONNECTION: --
GENERAL.CON-PATH: --
IP4.ADDRESS[1]: 127.0.0.1/8
IP4.GATEWAY:
IP6.ADDRESS[1]: ::1/128
IP6.GATEWAY:
ping -c 4 INDIRIZZO_IP_MODEM_ROUTER_ADSL
sam@sam-Gnome:~$ ping -c 4 192.168.9.22
PING 192.168.9.22 (192.168.9.22) 56(84) bytes of data.
64 bytes from 192.168.9.22: icmp_seq=1 ttl=64 time=1.16 ms
64 bytes from 192.168.9.22: icmp_seq=2 ttl=64 time=0.846 ms
64 bytes from 192.168.9.22: icmp_seq=3 ttl=64 time=0.892 ms
64 bytes from 192.168.9.22: icmp_seq=4 ttl=64 time=0.937 ms
--- 192.168.9.22 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.846/0.960/1.165/0.122 ms
-------------------------------------------------------------------
Risultato comandi con dns non connesso e non funzionante
sam@sam-Gnome:~$ ifconfig
docker0 Link encap:Ethernet HWaddr 02:42:34:8d:1b:ed
inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
enp0s10 Link encap:Ethernet HWaddr 00:22:68:65:fa:b5
inet addr:192.168.137.3 Bcast:192.168.137.255 Mask:255.255.255.0
inet6 addr: fe80::ca92:60b2:6409:9ed5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:321 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:39541 (39.5 KB)
enp0s6f1u2u2 Link encap:Ethernet HWaddr 46:c4:64:00:d0:da
inet addr:192.168.9.115 Bcast:192.168.9.255 Mask:255.255.255.0
inet6 addr: fe80::d0f9:aee5:1f76:941f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:563 errors:0 dropped:0 overruns:0 frame:0
TX packets:456 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:704272 (704.2 KB) TX bytes:87619 (87.6 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:7768 errors:0 dropped:0 overruns:0 frame:0
TX packets:7768 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:491513 (491.5 KB) TX bytes:491513 (491.5 KB)
sam@sam-Gnome:~$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.9.22 0.0.0.0 UG 100 0 0 enp0s6f1u2u2
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 enp0s10
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
192.168.9.0 0.0.0.0 255.255.255.0 U 100 0 0 enp0s6f1u2u2
192.168.137.0 0.0.0.0 255.255.255.0 U 100 0 0 enp0s10
sam@sam-Gnome:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
sam@sam-Gnome:~$ nmcli device show
GENERAL.DEVICE: docker0
GENERAL.TYPE: bridge
GENERAL.HWADDR: A6:30:84:9D:EF:E0
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: docker0
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1
IP4.ADDRESS[1]: 172.17.0.1/16
IP4.GATEWAY:
IP6.GATEWAY:
GENERAL.DEVICE: enp0s10
GENERAL.TYPE: ethernet
GENERAL.HWADDR: 00:22:68:65:FA:B5
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: Wired connection
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/3
WIRED-PROPERTIES.CARRIER: on
IP4.ADDRESS[1]: 192.168.137.3/24
IP4.GATEWAY:
IP4.ROUTE[1]: dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP6.ADDRESS[1]: fe80::ca92:60b2:6409:9ed5/64
IP6.GATEWAY:
GENERAL.DEVICE: enp0s6f1u2u2
GENERAL.TYPE: ethernet
GENERAL.HWADDR: 46:C4:64:00:D0:DA
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: Wired connection 1
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/4
WIRED-PROPERTIES.CARRIER: on
IP4.ADDRESS[1]: 192.168.9.115/24
IP4.GATEWAY: 192.168.9.22
IP4.DNS[1]: 208.67.222.222
IP4.DNS[2]: 80.80.80.80
IP4.DNS[3]: 208.67.220.220
IP4.DNS[4]: 80.80.81.81
IP6.ADDRESS[1]: fe80::d0f9:aee5:1f76:941f/64
IP6.GATEWAY:
GENERAL.DEVICE: lo
GENERAL.TYPE: loopback
GENERAL.HWADDR: 00:00:00:00:00:00
GENERAL.MTU: 65536
GENERAL.STATE: 10 (unmanaged)
GENERAL.CONNECTION: --
GENERAL.CON-PATH: --
IP4.ADDRESS[1]: 127.0.0.1/8
IP4.GATEWAY:
IP6.ADDRESS[1]: ::1/128
IP6.GATEWAY:
sam@sam-Gnome:~$ ping -c 4 192.168.9.22
PING 192.168.9.22 (192.168.9.22) 56(84) bytes of data.
64 bytes from 192.168.9.22: icmp_seq=1 ttl=64 time=0.993 ms
64 bytes from 192.168.9.22: icmp_seq=2 ttl=64 time=0.851 ms
64 bytes from 192.168.9.22: icmp_seq=3 ttl=64 time=0.402 ms
64 bytes from 192.168.9.22: icmp_seq=4 ttl=64 time=0.442 ms
--- 192.168.9.22 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.402/0.672/0.993/0.255 ms
S. @-M.
-------------
- thece
- Tenace Tecnocrate
- Messaggi: 12949
- Iscrizione: lunedì 23 aprile 2007, 14:16
- Distribuzione: Debian 12 (Bookworm) - KDE
Re: Problema DNS dopo ultimi aggiornamenti.
Codice: Seleziona tutto
ping -c 4 192.168.9.22
ping -c 4 208.67.222.222
nslookup google.it
ping goole.it
- Sam9999
- Entusiasta Emergente
- Messaggi: 1983
- Iscrizione: lunedì 9 giugno 2014, 8:59
- Desktop: Studio Xfce
- Distribuzione: Ubuntu 20.04 LTS (Focal)
- Località: BO
- Contatti:
Re: Problema DNS dopo ultimi aggiornamenti.
Codice: Seleziona tutto
sam@sam-Gnome:~$ ping -c 4 192.168.9.22
PING 192.168.9.22 (192.168.9.22) 56(84) bytes of data.
64 bytes from 192.168.9.22: icmp_seq=1 ttl=64 time=1.27 ms
64 bytes from 192.168.9.22: icmp_seq=2 ttl=64 time=0.558 ms
64 bytes from 192.168.9.22: icmp_seq=3 ttl=64 time=0.509 ms
64 bytes from 192.168.9.22: icmp_seq=4 ttl=64 time=1.01 ms
--- 192.168.9.22 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.509/0.838/1.270/0.319 ms
sam@sam-Gnome:~$ ping -c 4 208.67.222.222
PING 208.67.222.222 (208.67.222.222) 56(84) bytes of data.
64 bytes from 208.67.222.222: icmp_seq=1 ttl=50 time=318 ms
64 bytes from 208.67.222.222: icmp_seq=2 ttl=50 time=101 ms
64 bytes from 208.67.222.222: icmp_seq=3 ttl=50 time=99.9 ms
64 bytes from 208.67.222.222: icmp_seq=4 ttl=50 time=82.9 ms
--- 208.67.222.222 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3003ms
rtt min/avg/max/mdev = 82.920/150.623/318.293/97.076 ms
sam@sam-Gnome:~$ nslookup google.it
Server: 127.0.1.1
Address: 127.0.1.1#53
** server can't find google.it: REFUSED
sam@sam-Gnome:~$ ping -c 4 google.it
ping: unknown host google.it
sam@sam-Gnome:~$
S. @-M.
-------------
- thece
- Tenace Tecnocrate
- Messaggi: 12949
- Iscrizione: lunedì 23 aprile 2007, 14:16
- Distribuzione: Debian 12 (Bookworm) - KDE
Re: Problema DNS dopo ultimi aggiornamenti.
Con un editor di testi in modalità amministratore apri il file /etc/dhcp/dhclient.conf, duplicala la riga
Codice: Seleziona tutto
#prepend domain-name-servers 127.0.0.1;
Codice: Seleziona tutto
prepend domain-name-servers 208.67.222.222;
La prossima volta che ti capiterà di risvegliare il PC riesegui il test
Codice: Seleziona tutto
ping -c 4 192.168.9.22
ping -c 4 208.67.222.222
nslookup google.it
ping -c 4 google.it
- Sam9999
- Entusiasta Emergente
- Messaggi: 1983
- Iscrizione: lunedì 9 giugno 2014, 8:59
- Desktop: Studio Xfce
- Distribuzione: Ubuntu 20.04 LTS (Focal)
- Località: BO
- Contatti:
Re: Problema DNS dopo ultimi aggiornamenti.
Scusa, da rifare in quanto non si era tolto il cancelletto avanti a prepend domain-name-servers 208.67.222.222;
S. @-M.
-------------
- thece
- Tenace Tecnocrate
- Messaggi: 12949
- Iscrizione: lunedì 23 aprile 2007, 14:16
- Distribuzione: Debian 12 (Bookworm) - KDE
Re: Problema DNS dopo ultimi aggiornamenti.
Postami sempre gli output, non raccontarmeli.Sam9999 [url=http://forum.ubuntu-it.org/viewtopic.php?p=4967037#p4967037][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto: Comandi rieseguiti dopo cambio su file, il DNS ancora rifiuta.
- Sam9999
- Entusiasta Emergente
- Messaggi: 1983
- Iscrizione: lunedì 9 giugno 2014, 8:59
- Desktop: Studio Xfce
- Distribuzione: Ubuntu 20.04 LTS (Focal)
- Località: BO
- Contatti:
Re: Problema DNS dopo ultimi aggiornamenti.
Ora ho riavviato, riatteso che andasse in sospensione, riprovato e di seguito il codice. Ancora non funziona.
Codice: Seleziona tutto
sam@sam-Gnome:~$ ping -c 4 192.168.9.22
PING 192.168.9.22 (192.168.9.22) 56(84) bytes of data.
64 bytes from 192.168.9.22: icmp_seq=1 ttl=64 time=1.05 ms
64 bytes from 192.168.9.22: icmp_seq=2 ttl=64 time=0.924 ms
64 bytes from 192.168.9.22: icmp_seq=3 ttl=64 time=1.03 ms
64 bytes from 192.168.9.22: icmp_seq=4 ttl=64 time=1.20 ms
--- 192.168.9.22 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3001ms
rtt min/avg/max/mdev = 0.924/1.055/1.205/0.099 ms
sam@sam-Gnome:~$ ping -c 4 208.67.222.222
PING 208.67.222.222 (208.67.222.222) 56(84) bytes of data.
64 bytes from 208.67.222.222: icmp_seq=1 ttl=52 time=311 ms
64 bytes from 208.67.222.222: icmp_seq=2 ttl=52 time=97.9 ms
64 bytes from 208.67.222.222: icmp_seq=3 ttl=52 time=76.1 ms
64 bytes from 208.67.222.222: icmp_seq=4 ttl=52 time=104 ms
--- 208.67.222.222 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 76.130/147.344/311.211/95.178 ms
sam@sam-Gnome:~$ nslookup google.it
Server: 127.0.1.1
Address: 127.0.1.1#53
** server can't find google.it: REFUSED
sam@sam-Gnome:~$ ping -c 4 google.it
ping: unknown host google.it
sam@sam-Gnome:~$
S. @-M.
-------------
- thece
- Tenace Tecnocrate
- Messaggi: 12949
- Iscrizione: lunedì 23 aprile 2007, 14:16
- Distribuzione: Debian 12 (Bookworm) - KDE
Re: Problema DNS dopo ultimi aggiornamenti.
se hai fatto la modifica che ti ho chiesto, e dovrebbe apparire nell'output di questi due comandiSam9999 [url=http://forum.ubuntu-it.org/viewtopic.php?p=4967048#p4967048][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto: Scusa, ma volevo cacellare il messaggio precedente in quanto non si era tolto il # e quindi la modifica non era valida.
Ora ho riavviato, riatteso che andasse in sospensione, riprovato e di seguito il codice. Ancora non funziona.
Codice: Seleziona tutto
sam@sam-Gnome:~$ nslookup google.it Server: 127.0.1.1 Address: 127.0.1.1#53
Codice: Seleziona tutto
cat /etc/dhcp/dhclient.conf | grep prepend
cat /etc/resolv.conf
Per un eventuale ulteriore test ho modificato i comandi
Codice: Seleziona tutto
nslookup google.it
nslookup google.it 208.67.222.222
ping -c 4 google.it
- Sam9999
- Entusiasta Emergente
- Messaggi: 1983
- Iscrizione: lunedì 9 giugno 2014, 8:59
- Desktop: Studio Xfce
- Distribuzione: Ubuntu 20.04 LTS (Focal)
- Località: BO
- Contatti:
Re: Problema DNS dopo ultimi aggiornamenti.
Codice: Seleziona tutto
sam@sam-Gnome:~$ cat /etc/dhcp/dhclient.conf | grep prepend
prepend domain-name-servers 208.67.222.222;
sam@sam-Gnome:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1
sam@sam-Gnome:~$ nslookup google.it
Server: 127.0.1.1
Address: 127.0.1.1#53
** server can't find google.it: REFUSED
sam@sam-Gnome:~$ nslookup google.it 208.67.222.222
Server: 208.67.222.222
Address: 208.67.222.222#53
Non-authoritative answer:
Name: google.it
Address: 216.58.198.3
sam@sam-Gnome:~$ ping -c 4 google.it
ping: unknown host google.it
sam@sam-Gnome:~$
S. @-M.
-------------
- thece
- Tenace Tecnocrate
- Messaggi: 12949
- Iscrizione: lunedì 23 aprile 2007, 14:16
- Distribuzione: Debian 12 (Bookworm) - KDE
Re: Problema DNS dopo ultimi aggiornamenti.
Questa direttiva è stata completamente ignorata
infatti nell'output seguente non appareSam9999 [url=http://forum.ubuntu-it.org/viewtopic.php?p=4967116#p4967116][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:Codice: Seleziona tutto
sam@sam-Gnome:~$ cat /etc/dhcp/dhclient.conf | grep prepend prepend domain-name-servers 208.67.222.222;
Puoi rimettere a posto il file /etc/dhcp/dhclient.conf, il problema è Network Manager e/o dnsmasq (dall'output dei due nslookup)Sam9999 [url=http://forum.ubuntu-it.org/viewtopic.php?p=4967116#p4967116][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:Codice: Seleziona tutto
sam@sam-Gnome:~$ cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.1.1
Mi posti questi output
Codice: Seleziona tutto
cat /etc/NetworkManager/NetworkManager.conf
sudo netstat -tulnp | grep dns
ls -l /etc/resolv.conf
lsattr /etc/resolv.conf
- Sam9999
- Entusiasta Emergente
- Messaggi: 1983
- Iscrizione: lunedì 9 giugno 2014, 8:59
- Desktop: Studio Xfce
- Distribuzione: Ubuntu 20.04 LTS (Focal)
- Località: BO
- Contatti:
Re: Problema DNS dopo ultimi aggiornamenti.
Codice: Seleziona tutto
sam@sam-Gnome:~$ cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq
[ifupdown]
managed=false
sam@sam-Gnome:~$ sudo netstat -tulnp | grep dns
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN 1510/dnsmasq
udp 0 0 0.0.0.0:40724 0.0.0.0:* 1510/dnsmasq
udp 0 0 127.0.1.1:53 0.0.0.0:* 1510/dnsmasq
sam@sam-Gnome:~$ ls -l /etc/resolv.conf
lrwxrwxrwx 1 root root 29 mar 18 14:57 /etc/resolv.conf -> ../run/resolvconf/resolv.conf
sam@sam-Gnome:~$ lsattr /etc/resolv.conf
lsattr: Operation not supported Durante la lettura dei flag di /etc/resolv.conf
S. @-M.
-------------
- thece
- Tenace Tecnocrate
- Messaggi: 12949
- Iscrizione: lunedì 23 aprile 2007, 14:16
- Distribuzione: Debian 12 (Bookworm) - KDE
Re: Problema DNS dopo ultimi aggiornamenti.
Codice: Seleziona tutto
sudo /etc/init.d/network-manager restart
Posta questo output
Codice: Seleziona tutto
ls -l /etc/resolvconf/resolv.conf.d
- Sam9999
- Entusiasta Emergente
- Messaggi: 1983
- Iscrizione: lunedì 9 giugno 2014, 8:59
- Desktop: Studio Xfce
- Distribuzione: Ubuntu 20.04 LTS (Focal)
- Località: BO
- Contatti:
Re: Problema DNS dopo ultimi aggiornamenti.
Codice: Seleziona tutto
sam@sam-Gnome:~$ ls -l /etc/resolvconf/resolv.conf.d
total 4
-rw-r--r-- 1 root root 0 giu 3 2015 base
-rw-r--r-- 1 root root 151 giu 3 2015 head
sam@sam-Gnome:~$
Alla prossima sospensione provo il riavvio del networkmanager..
Provato il riavvio del networkmanager, ho l'OK ma il DNS resta uguale, non risolve.
S. @-M.
-------------
- thece
- Tenace Tecnocrate
- Messaggi: 12949
- Iscrizione: lunedì 23 aprile 2007, 14:16
- Distribuzione: Debian 12 (Bookworm) - KDE
Re: Problema DNS dopo ultimi aggiornamenti.
OKSam9999 [url=http://forum.ubuntu-it.org/viewtopic.php?p=4967281#p4967281][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto: Provato il riavvio del networkmanager, ho l'OK ma il DNS resta uguale, non risolve.
Tempo addietro quando ti ho chiesto di modificare il file /etc/dhcp/dhclient.conf decommentando la direttiva prepend ti ricordi se dopo la (seconda, leggi sopra perchè) modifica hai riavviato il PC?
- Sam9999
- Entusiasta Emergente
- Messaggi: 1983
- Iscrizione: lunedì 9 giugno 2014, 8:59
- Desktop: Studio Xfce
- Distribuzione: Ubuntu 20.04 LTS (Focal)
- Località: BO
- Contatti:
Re: Problema DNS dopo ultimi aggiornamenti.
Solo ame capitano i "Misteri della Fede" al computer.
S. @-M.
-------------
- Sam9999
- Entusiasta Emergente
- Messaggi: 1983
- Iscrizione: lunedì 9 giugno 2014, 8:59
- Desktop: Studio Xfce
- Distribuzione: Ubuntu 20.04 LTS (Focal)
- Località: BO
- Contatti:
Re: Problema DNS dopo ultimi aggiornamenti.
Sto pensando che può essere l'interfaccia docker0 del bridge che da fastidio?
Mi pare che l'abilitai per provare un routing fra le reti lan USB e WIRED.
Se do il comando "ifconfig docker0 down" me la tiene disabilitata?
S. @-M.
-------------
- thece
- Tenace Tecnocrate
- Messaggi: 12949
- Iscrizione: lunedì 23 aprile 2007, 14:16
- Distribuzione: Debian 12 (Bookworm) - KDE
Re: Problema DNS dopo ultimi aggiornamenti.
Riuscire a pingare un server DNS non significa risolvere correttamente gli URLSam9999 [url=http://forum.ubuntu-it.org/viewtopic.php?p=4973340#p4973340][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto: ... e adesso quando anche riavvio capita che non mi va su internet anche pingando i DNS...
Non conosco il funzionamento di Docker e cosa metta esattamente "in bridge" l'interfaccia di rete docker0, ma (dal tuo PC) una query di risoluzione DNS non dovrebbe assolutamente transitare da quell'interfacciaSam9999 [url=http://forum.ubuntu-it.org/viewtopic.php?p=4973340#p4973340][img]http://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto: Sto pensando che può essere l'interfaccia docker0 del bridge che da fastidio?
- Sam9999
- Entusiasta Emergente
- Messaggi: 1983
- Iscrizione: lunedì 9 giugno 2014, 8:59
- Desktop: Studio Xfce
- Distribuzione: Ubuntu 20.04 LTS (Focal)
- Località: BO
- Contatti:
Re: Problema DNS dopo ultimi aggiornamenti.
# sudo service docker stop
# ip link del docker0
Ora vedo come va..
S. @-M.
-------------
Chi c’è in linea
Visualizzano questa sezione: 0 utenti iscritti e 14 ospiti