PINE64
DNS Problems with Mobile Data - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Mobian on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=139)
+---- Thread: DNS Problems with Mobile Data (/showthread.php?tid=16133)

Pages: 1 2 3


DNS Problems with Mobile Data - arno_nuehm - 02-20-2022

Hello there,

is anyone else facing DNS problems using mobile data after the latest Network Manager update to v1.35.91-1?

I can ping 8.8.4.4 for example but opening a homepage in a browser is not working.

No problems with Wifi though...

Thanks in advance!


RE: DNS Problems with Mobile Data - jsch - 02-20-2022

Switch back to previous version
Code:
dpkg -i /var/cache/apt/archives/network-manager_1.34.0-2_arm64.deb /var/cache/apt/archives/libnm0_1.34.0-2_arm64.deb

... and prevent installing version 1.35.*
Code:
echo -en 'Package: network-manager\nPin: version 1.35.*\nPin-Priority: -1\n\n' >> /etc/apt/preferences
If the software is not in the cache, fetch it from snapshot.debian.org:
https://snapshot.debian.org/archive/debian/20220119T025427Z/pool/main/n/network-manager/network-manager_1.34.0-2_arm64.deb
https://snapshot.debian.org/archive/debian/20220119T025427Z/pool/main/n/network-manager/libnm0_1.34.0-2_arm64.deb


RE: DNS Problems with Mobile Data - Zebulon Walton - 02-20-2022

You can manually set your name servers in /etc/resolv.conf. However if you directly edit the file it will be overwritten on next boot or network connect. Here's how to make it permanent, assuming Mobian is set up the same way as stock Debian and Ubuntu:

https://www.tecmint.com/set-permanent-dns-nameservers-in-ubuntu-debian/


RE: DNS Problems with Mobile Data - dukla2000 - 02-20-2022

(02-20-2022, 08:04 AM)arno_nuehm Wrote: ...
is anyone else facing DNS problems using mobile data after the latest Network Manager update to v1.35.91-1?
...

Yes

(02-20-2022, 11:05 AM)jsch Wrote: Switch back to previous version
Code:
dpkg -i /var/cache/apt/archives/network-manager_1.34.0-2_arm64.deb /var/cache/apt/archives/libnm0_1.34.0-2_arm64.deb

...

Many thanks


RE: DNS Problems with Mobile Data - arno_nuehm - 02-20-2022

Thanks for your answers. Sadly, downgrading wasn't helping in my case. But manually setting up an alternative DNS server adresse did the trick.

I think, maybe some of the also updated Mobian scripts might have changed the way how host are now resolved while using mobile data - but it's a bit of a wild guess here.

So, thanks Zebulon Walton for your link!

And hopefully, another update will fix that bug so the manual fiddling can be revoked.

Cheers and good night!


RE: DNS Problems with Mobile Data - user641 - 02-20-2022

Same problem here, no 4G data. I will wait for the update fix.


RE: DNS Problems with Mobile Data - dachalife - 02-21-2022

I had this today also, rolling back fixed it; thanks.


RE: DNS Problems with Mobile Data - anonymous - 02-21-2022

(02-20-2022, 08:04 AM)arno_nuehm Wrote: Hello there,

is anyone else facing DNS problems using mobile data after the latest Network Manager update to v1.35.91-1?

I can ping 8.8.4.4 for example but opening a homepage in a browser is not working.

No problems with Wifi though...

Thanks in advance!

Yes I have the same problem since about 24 hours. Thank you for mentioning it here. My Pinephone is my daily driver, I really need to make it work anew.

I reported this bug here:
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/931
Please mention your workarounds.


RE: DNS Problems with Mobile Data - arno_nuehm - 02-22-2022

(02-21-2022, 05:23 PM)anonymous Wrote:
(02-20-2022, 08:04 AM)arno_nuehm Wrote: Hello there,

is anyone else facing DNS problems using mobile data after the latest Network Manager update to v1.35.91-1?

I can ping 8.8.4.4 for example but opening a homepage in a browser is not working.

No problems with Wifi though...

Thanks in advance!

Yes I have the same problem since about 24 hours. Thank you for mentioning it here. My Pinephone is my daily driver, I really need to make it work anew.

I reported this bug here:
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/931
Please mention your workarounds.

Thanks for the bug report. I think, the problem is that the latest Bookworm version of Network Manager is not forwarding the DNS server adress from mobile networks to the system as it does with the Wifi DNS.

And since I don't like downgrading, here is my workaround as mentioned above from Zebulon Walton:

Code:
sudo apt install resolvconf
sudo nano /etc/resolvconf/resolv.conf.d/head
# add "nameserver IP-ADRESS" --> 9.9.9.9 for quad9 for example
sudo systemctl restart resolvconf.service
sudo systemctl restart systemd-resolved.service

That did the trick for me without downgrading.

Cheers


RE: DNS Problems with Mobile Data - anonymous - 02-22-2022

(02-22-2022, 04:16 AM)arno_nuehm Wrote:
(02-21-2022, 05:23 PM)anonymous Wrote:
(02-20-2022, 08:04 AM)arno_nuehm Wrote: Hello there,

is anyone else facing DNS problems using mobile data after the latest Network Manager update to v1.35.91-1?

I can ping 8.8.4.4 for example but opening a homepage in a browser is not working.

No problems with Wifi though...

Thanks in advance!

Yes I have the same problem since about 24 hours. Thank you for mentioning it here. My Pinephone is my daily driver, I really need to make it work anew.

I reported this bug here:
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/931
Please mention your workarounds.

Thanks for the bug report. I think, the problem is that the latest Bookworm version of Network Manager is not forwarding the DNS server adress from mobile networks to the system as it does with the Wifi DNS.

And since I don't like downgrading, here is my workaround as mentioned above from Zebulon Walton:

Code:
sudo apt install resolvconf
sudo nano /etc/resolvconf/resolv.conf.d/head
# add "nameserver IP-ADRESS" --> 9.9.9.9 for quad9 for example
sudo systemctl restart resolvconf.service
sudo systemctl restart systemd-resolved.service

That did the trick for me without downgrading.

Cheers

Yes I saw the same trick here:
https://debian-facile.org/doc:systeme:resolv.conf

"Il suffit de mettre les paramètres que l'on veut dans le fichier « head » présent ici : /etc/resolvconf/resolv.conf.d/

Dès lors, ce sont ces paramètres qui seront repris comme prioritaires dans le resolv.conf" which means

"Just put the parameters you want into the "head" file here: /etc/resolvconf/resolv.conf.d/

From then on, these parameters will be taken up as priorities in the resolv.conf"


I'm going to use these DNS:
https://www.fdn.fr/actions/dns/

P.S: It works as expected, many thanks Smile