Strange browser problem

Hi, I have experiencing really strange problem last about 2 week. After PC start I have problem to go to almost every website via browser (Firefox, Chromium) and Thunderbird won’t download messages. It’s too slow or website isn’t loaded at all. But internet works - for example downloading updates is fast as always. Nothing what I do (restart, Firefox safe mode…) helps. And for some time browser and Thunderbird stars works normally as there was no problem at all.

DNS settings maybe?
By default most modern browsers (including FF and Chromium) use their own DNS unless you disable it.
I find this annoying because I want my browser to follow my system DNS settings.
It may not be related to your current situation … but given the discrepancies in performance … its possible.
This can be disabled in the browsers, ala:

In Chrom*:

  • Use Secure DNS > Off

In Firefox:

  • DNS over HTTPS > Off

Also … heres a DNS speed test in script form …

#!/usr/bin/env bash
#
# dns speed test
#
if [[ -z "$DOMAIN" ]]; then
DOMAIN=wikipedia.org
fi;
CURRENTDNS=$(dig "$DOMAIN" | grep SERVER | awk -F'[)(]' '{print $2}')
if [[ -z "$SKIP" ]]; then
echo
echo " Test common resolvers by calculating average response times of 3 queries."
echo
annc() {
echo 
echo " DNS Primary  Secondary"
echo 
echo " Adguard 94.140.14.14 94.140.15.15"
echo " Comodo 8.26.56.26 8.20.247.20"
echo " Control-D 76.76.2.2 76.76.10.2"
echo " Cloudflare 1.1.1.1 1.0.0.1"
echo " CyberGhost 38.132.106.139 194.187.251.67"
echo " Google 8.8.8.8 8.8.4.4"
echo " Neustar 156.154.70.5 156.154.71.2"
echo " NextDNS 45.90.28.97 45.90.30.97"
echo " OpenDNS 208.67.222.222 208.67.220.220"
echo " Quad9 9.9.9.9 149.112.112.112"
echo 
}
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -
annc | column -tL
fi;
if [[ -n "$TESTDNS" ]]; then
echo "Custom Test DNS $TESTDNS"
fi
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -
echo
while true; do
    read -p " Do you wish to flush the DNS cache? " yn
    case $yn in
        [Yy]* ) resolvectl flush-caches; break;;
        [Nn]* ) break;;
        * ) echo -e "\n Please answer yes or no.\n";;
    esac
done
echo
echo "Current DNS $CURRENTDNS"
   for reps in {1..3}
   do
    dig "$DOMAIN" | awk '/time/ {print $4 " ms"}'
    sleep 1
   done | awk '/ms/ {sum+=$1} END {print "Avg time: ",sum/3, " ms"}'
echo
if [[ -z "$SKIP" ]]; then
rank() {
for resolver in "Adguard 94.140.14.14" "Comodo 8.26.56.26" "Control-D 76.76.2.2" "Cloudflare 1.1.1.1" "CyberGhost 38.132.106.139" "Google 8.8.8.8" "Neustar 156.154.70.5" "NextDNS 45.90.28.97" "OpenDNS 208.67.222.222" "Quad9 9.9.9.9";
do
   echo $resolver
   for reps in {1..3}
   do
    dig "$DOMAIN" "@${resolver#* }" | awk '/time/ {print $4 " ms"}'
    sleep 1
   done | awk '/ms/ {sum+=$1} END {print "Avg time: ",sum/3, " ms"}'
   echo
done
}
rank;
fi;
if [[ -n "$TESTDNS" ]]; then
echo "Custom Test DNS $TESTDNS"
   for reps in {1..3}
   do
    dig "$DOMAIN" "@$TESTDNS" | awk '/time/ {print $4 " ms"}'
    sleep 1
   done | awk '/ms/ {sum+=$1} END {print "Avg time: ",sum/3, " ms"}'
echo
fi
exit

Notes:
Of course you can modify it to add or remove servers.
And it relies on dig which is provided by the bind package.

Hi, secure DNS is off, that was my guess too. What is really strange is, that Manjaro site mostly works fine, but other sites (czech) show this behaviour. Also google is really slow.

There is output from script:

 Test common resolvers by calculating average response times of 3 queries.

----------------------------------------------------------------------------------------------------
                            
DNS         Primary         Secondary
                            
Adguard     94.140.14.14    94.140.15.15
Comodo      8.26.56.26      8.20.247.20
Control-D   76.76.2.2       76.76.10.2
Cloudflare  1.1.1.1         1.0.0.1
CyberGhost  38.132.106.139  194.187.251.67
Google      8.8.8.8         8.8.4.4
Neustar     156.154.70.5    156.154.71.2
NextDNS     45.90.28.97     45.90.30.97
OpenDNS     208.67.222.222  208.67.220.220
Quad9       9.9.9.9         149.112.112.112
                            
----------------------------------------------------------------------------------------------------

 Do you wish to flush the DNS cache? y
Failed to flush caches: Unit dbus-org.freedesktop.resolve1.service not found.

Current DNS 192.168.1.1
Avg time:  39.6667  ms

Adguard 94.140.14.14
Avg time:  0  ms

Comodo 8.26.56.26
Avg time:  0  ms

Control-D 76.76.2.2
Avg time:  0  ms

Cloudflare 1.1.1.1
Avg time:  0  ms

CyberGhost 38.132.106.139
Avg time:  0  ms

Google 8.8.8.8
Avg time:  0  ms

Neustar 156.154.70.5
Avg time:  0  ms

NextDNS 45.90.28.97
Avg time:  0  ms

OpenDNS 208.67.222.222
Avg time:  0  ms

Quad9 9.9.9.9
Avg time:  0  ms

I could change DNS server… Is less ms better? And what means 0 ms exactly?

Hi again, after while of tinkering, it seems that problem is in my modem!

But, my question about DNS still stands :slight_smile:

Less would be better, but the 0’s are probably the result of failure.

Try using NextDNS

ok, thx

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.