Problema DNS dopo ultimi aggiornamenti.

Networking, configurazione della connessione, periferiche e condivisioni di rete.
Avatar utente
Sam9999
Entusiasta Emergente
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.

Messaggio da Sam9999 »

Ieri sera ho effettuato degli aggiornamenti, non richiesti ma ho mandato la procedura.
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.
-------------
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12949
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: Problema DNS dopo ultimi aggiornamenti.

Messaggio da thece »

:ciao:

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
Avatar utente
Sam9999
Entusiasta Emergente
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.

Messaggio da Sam9999 »

Ho eseguito i comandi sia prima di andare in sospensione e quindi con internet e DNS funzionanti, e sia successivamente, di rientro dalla sospensione e con internet e DNS non funzionanti, a dire il vero io non noto differenze, il modem via USB sul gateway 192.168.9.22 è raggiunto in ambedue i casi e anche il routing mi pare uguale. :ciao:

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.
-------------
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12949
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: Problema DNS dopo ultimi aggiornamenti.

Messaggio da thece »

Si, guardando la configurazione sembrerebbe tutto a posto. Quando il problema ti ricapiterà dai questi comandi e riportami gli output

Codice: Seleziona tutto

ping -c 4 192.168.9.22
ping -c 4 208.67.222.222
nslookup google.it
ping goole.it
Avatar utente
Sam9999
Entusiasta Emergente
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.

Messaggio da Sam9999 »

Si seguito le risposte, strano che il server DNS è raggiunto fuori dalla rete interna ma si rifiuta di risolvere...

:birra:

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.
-------------
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12949
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: Problema DNS dopo ultimi aggiornamenti.

Messaggio da thece »

Uhm ... curioso. Proviamo a fare questo test: temporaneamente tagliamo fuori dnsmasq.
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;
decommenta il duplicato, ossia togli il # iniziale, e modificalo così

Codice: Seleziona tutto

prepend domain-name-servers 208.67.222.222;
salva il file e riavvia il PC.
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
Ultima modifica di thece il sabato 18 marzo 2017, 13:07, modificato 1 volta in totale.
Avatar utente
Sam9999
Entusiasta Emergente
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.

Messaggio da Sam9999 »

Comandi rieseguiti dopo cambio su file, il DNS ancora rifiuta.

Scusa, da rifare in quanto non si era tolto il cancelletto avanti a prepend domain-name-servers 208.67.222.222;
-------------
S. @-M.
-------------
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12949
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: Problema DNS dopo ultimi aggiornamenti.

Messaggio da thece »

Postami sempre gli output, non raccontarmeli.
Avatar utente
Sam9999
Entusiasta Emergente
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.

Messaggio da Sam9999 »

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:~$ 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.
-------------
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12949
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: Problema DNS dopo ultimi aggiornamenti.

Messaggio da thece »

Non mi torna questo risultato
Sam9999 [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
se hai fatto la modifica che ti ho chiesto, e dovrebbe apparire nell'output di questi due comandi

Codice: Seleziona tutto

cat /etc/dhcp/dhclient.conf | grep prepend
cat /etc/resolv.conf
al posto di server 127.0.1.1 dovrebbe esserci scritto server 208.67.222.222. Ricontrolla

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
Avatar utente
Sam9999
Entusiasta Emergente
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.

Messaggio da Sam9999 »

Ecco il risultato..

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.
-------------
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12949
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: Problema DNS dopo ultimi aggiornamenti.

Messaggio da thece »

Scusa, l'ho notato solo ora: stai usando Ubuntu 12.04 ?



Questa direttiva è stata completamente ignorata
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/dhcp/dhclient.conf | grep prepend
prepend domain-name-servers 208.67.222.222;
infatti nell'output seguente non appare
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
Puoi rimettere a posto il file /etc/dhcp/dhclient.conf, il problema è Network Manager e/o dnsmasq (dall'output dei due nslookup)



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
Avatar utente
Sam9999
Entusiasta Emergente
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.

Messaggio da Sam9999 »

Ecco il risultato dei comandi..

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
Visto amano il file /etc/resolv.conf ha i permessi rw-r- r
-------------
S. @-M.
-------------
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12949
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: Problema DNS dopo ultimi aggiornamenti.

Messaggio da thece »

La configurazione del Network Manager / dnsmasq per quello che vedo è a posto. Hai provato a riavviare il Network Manager dopo che hai risvegliato il PC?

Codice: Seleziona tutto

sudo /etc/init.d/network-manager restart
Hai rimesso a posto il file /etc/dhcp/dhclient.conf ?


Posta questo output

Codice: Seleziona tutto

ls -l /etc/resolvconf/resolv.conf.d
Avatar utente
Sam9999
Entusiasta Emergente
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.

Messaggio da Sam9999 »

Si ho anche ricontrollato.

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:~$ 

Ora provo anche se vi sono aggiornamenti di sistema da fare...

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.
-------------
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12949
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: Problema DNS dopo ultimi aggiornamenti.

Messaggio da thece »

Sam9999 [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.
OK

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?
Avatar utente
Sam9999
Entusiasta Emergente
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.

Messaggio da Sam9999 »

Si certo, credo di esserci stato attento, ho riavviato dopo ogni modifica.
Solo ame capitano i "Misteri della Fede" al computer. :)
-------------
S. @-M.
-------------
Avatar utente
Sam9999
Entusiasta Emergente
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.

Messaggio da Sam9999 »

Questo fatto ancora non si riesce a capire, ho preso anche la fibra e adesso quando anche riavvio capita che non mi va su internet anche pingando i DNS.
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.
-------------
Avatar utente
thece
Tenace Tecnocrate
Tenace Tecnocrate
Messaggi: 12949
Iscrizione: lunedì 23 aprile 2007, 14:16
Distribuzione: Debian 12 (Bookworm) - KDE

Re: Problema DNS dopo ultimi aggiornamenti.

Messaggio da thece »

Sam9999 [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...
Riuscire a pingare un server DNS non significa risolvere correttamente gli URL
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'interfaccia
Avatar utente
Sam9999
Entusiasta Emergente
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.

Messaggio da Sam9999 »

Per eliminare il bridge

# sudo service docker stop
# ip link del docker0

Ora vedo come va..
-------------
S. @-M.
-------------
Scrivi risposta

Ritorna a “Connessione e configurazione delle reti”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 14 ospiti