View previous topic :: View next topic |
Author |
Message |
un74 n00b
Joined: 09 Jan 2025 Posts: 5
|
Posted: Thu Jan 09, 2025 9:43 am Post subject: no internet after 6.6.62 upgrade DNS problem |
|
|
Have recently updated my gentoo to 6.6.62 sources.
Changed profile to systemd and used a livecd that was openRC.
Now, cannot connect to the web. I can ping 8.8.8.8 but cannot ping www.google.com anc so far cannot surf the web.
Am using another pc to write you, will attach photos of the screen to show you.
have 2 interfaces, lo and enp4s0. Impression is there is some conflict in configuration files related to DNS, but am not sure. To start with, share with you ifconfig output:
https://1drv.ms/i/c/3e25edf804115a0f/EYkaTw7o7hRDjb8rcaeDm00BikQnugMesn_ch_zzgM57ng?e=cipJWF
Thanks in advance for any solution |
|
Back to top |
|
|
leonik375 n00b
Joined: 19 Jul 2016 Posts: 5
|
|
Back to top |
|
|
un74 n00b
Joined: 09 Jan 2025 Posts: 5
|
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22960
|
Posted: Thu Jan 09, 2025 3:01 pm Post subject: |
|
|
Welcome to the forums. Please note that 1drv.ms is not a good service to use to share troubleshooting content, as the returned document does not actually have your file. Instead, I get: You need to enable JavaScript to run this app. This is wrong, as Javascript should not be required to view a photo.
From the symptoms you describe, I suspect leonik375 is correct. The file is empty, wrong, or points to an unusable DNS server. Please share as text the output of cat -n /etc/resolv.conf ; dig www.gentoo.org ; dig www.gentoo.org @8.8.8.8.
You may be able to temporarily get DNS working on the system by overriding resolv.conf to use Google's DNS. I suggest doing this only long enough to identify and fix the real problem. |
|
Back to top |
|
|
un74 n00b
Joined: 09 Jan 2025 Posts: 5
|
Posted: Thu Jan 09, 2025 3:47 pm Post subject: |
|
|
Hi Hu, thanks for reply. Really the picure in my onedrive does not open automatically?
I sheared the link to let you seen an image of cat /etc/resolv.conf. Am aware it's not standard way to forward messages, but since cannot connect have not many more alternatives and am writing from another pc. Also, cannot emerge unless package is already in the portage tree. Is the command "dig" equivalent to ping? For instance, cannot emerge bind-tools.
Am writing by hand the 3 uncommented lines in /etc/resolv.conf:
nameserver 127.0.0.53
opitions ends0 trust-ad
search station
----------------------------------
and, as for previous onedrive link, the ifconfig presents 2 interfaces:
enp4s0: flags=4163<UP,BROADBAST, RUNNING, MULTICAST> mtu 1500
inet 192.168.1.3 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::......
RX packets 782 ...
...
TX packets 706 ...
...
...
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 ...
RX packets 173 ...
...
TX packets 173 ...
...
...
Have one more doubt: can my problem be related to interface lo? |
|
Back to top |
|
|
druggo Guru
Joined: 24 Sep 2003 Posts: 323 Location: Hangzhou, China
|
Posted: Thu Jan 09, 2025 4:02 pm Post subject: |
|
|
I suggest not using systemd-resolved , its complicated and sometimes will mess things up, disable it:
Code: | systemctl disable --now systemd-resolved.service
rm /etc/resolv.conf |
now , you can restore the resolve file:
Code: |
cp /run/systemd/resolve/resolv.conf /etc/resolv.conf
|
or simply use 8.8.8.8
Code: |
echo nameserver 8.8.8.8 > /etc/resolv.conf
|
un74 wrote: |
Have one more doubt: can my problem be related to interface lo? |
no, the problem is systemd-resolved, its overkill for only one network interface _________________ AMD FX-8300 / Loongson-2f (lemote-yeeloong) |
|
Back to top |
|
|
un74 n00b
Joined: 09 Jan 2025 Posts: 5
|
Posted: Thu Jan 09, 2025 4:55 pm Post subject: |
|
|
Thank you Druggo, problem solved!
So far, you recommend using the google DNS "registry"? Looking on the web (from gentoo pc now -) looks like the 127.0.0.53 needs to be set up for special purposes only, right?
Cheers |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22960
|
Posted: Thu Jan 09, 2025 5:51 pm Post subject: |
|
|
un74 wrote: | Really the picure in my onedrive does not open automatically? | Correct. The link you provided is neither the image file nor an HTML document that directly references it. un74 wrote: | Is the command "dig" equivalent to ping? For instance, cannot emerge bind-tools. | No, they are not equivalent. dig would be far more informative than ping in this instance. un74 wrote: | Code: | nameserver 127.0.0.53
opitions ends0 trust-ad
search station |
| This says you are delegating all resolution to a nameserver running on loopback. If that nameserver is not in good order, then DNS will not work for you. un74 wrote: | Have one more doubt: can my problem be related to interface lo? | No. un74 wrote: | So far, you recommend using the google DNS "registry"? | Some people recommend it, particularly because its address is easily memorized. I recommend using your local provider's DNS server, unless you have a specific reason not to. (Some providers offer poor quality DNS servers, whether slow or grossly noncompliant. If you have such a provider, then avoiding their DNS server may make sense.) un74 wrote: | Looking on the web (from gentoo pc now -) looks like the 127.0.0.53 needs to be set up for special purposes only, right? | It is needed if you want to run a more complicated resolver, such as dnsmasq or systemd-resolved, and have most programs delegate to that complicated resolver. If you prefer to let your provider do all the work, using their server directly is fine. |
|
Back to top |
|
|
un74 n00b
Joined: 09 Jan 2025 Posts: 5
|
Posted: Thu Jan 09, 2025 6:31 pm Post subject: |
|
|
Thank you for reply, Hu! |
|
Back to top |
|
|
|