You are not logged in.

#1 2022-03-19 22:28:21

Chavin
Member
Registered: 2022-03-19
Posts: 1

[SOLVED] 5 Second delay on any domain at DNS resolving

I just got a new laptop (ASUS A515-46) and installed arch in it, same setup as in my desktop, plasma, networkmanager, etc.

Everything is fine except the internet, everything from a simple ping to loading websites takes from 5-10 seconds. This has never happened in my desktop nor any computer I have installed Arch on.

I think this has to do with DNS resolving, because when pinging gnu.org it takes about 10 seconds to start, while pinging 8.8.8.8 starts immediately:

Asciinema recording

Same with Brave when visiting a new site:

https://i.imgur.com/QMEnURd.png

I tried doing this solution from the arch wiki but /etc/resolv.conf would just get overwritten by NetworkManager, so I "write-protect it by setting the immutable file attribute":

/etc/resolv.conf:
# Generated by NetworkManager
nameserver 1.1.1.1
nameserver 8.8.8.8

options single-request

Rebooted and it keeps happening, is there any way to fix this? I want to get it fixed by tomorrow cuz i'm gonna have to bring this to school on monday (GMT-5) and it could interfere with my work...

moderator edit -- replaced oversized image with link.
Pasting pictures and code

Edit: This had nothing to do with arch itself rather with the 1.1.1.1 DNS server... apparently its unreachable from my network and changing it to another DNS server fixes it. Although that should it should have fixed the first time I was hopping between DNS, probably because I didn't modified the resolv.conf file yet. more info: reddit post

Last edited by Chavin (2022-03-20 13:09:05)

Offline

#2 2022-03-20 07:24:12

seth
Member
Registered: 2012-09-03
Posts: 60,906

Re: [SOLVED] 5 Second delay on any domain at DNS resolving

stat /etc/resolv.conf
ps aux | grep resolve
cat /etc/nsswitch.conf
dig google.com
dig @1.1.1.1 google.com
dig @8.8.8.8 google.com

And you could try to simply https://wiki.archlinux.org/title/IPv6#Disable_IPv6

Do you run a local firewall on the system?

Online

#3 2022-03-20 08:14:30

pipep
Member
Registered: 2016-12-04
Posts: 10

Re: [SOLVED] 5 Second delay on any domain at DNS resolving

It is may be this bug in kernel linux-5.16.15:
https://bugzilla.kernel.org/show_bug.cgi?id=215703
You could try downgrading to linux-5.16.14.

Offline

Board footer

Powered by FluxBB