Website is resolved to localhost, and thus browser is unable to connect to it

My Fedora Workstation 35 is resolving the website gutenberg.org to localhost, and thus my browser is unable to connect to this site.

Why is that?

I attach ping and dump of /etc/hosts:

$ ping gutenberg.org
PING gutenberg.org (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.039 ms
$ cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
1 Like

My systemd-resolved is active:

$ systemctl is-active systemd-resolved
active

Flushing the DNS cache does not fix the problem:

$ sudo systemd-resolve --flush-caches
$ ping gutenberg.org
PING gutenberg.org (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.038 ms
1 Like

Try with systemctl restart network-manager first. Hopefully it will reset your network settings.

Please also check cat /etc/resolv.conf value.

What is the output of:

resolvectl status

And can you resolve it by using another DNS resolver, e.g:

nslookup gutenberg.org 9.9.9.9

Or:

dig @9.9.9.9 gutenberg.org
1 Like

What nameservers are you using? You may want to change them, restart networking and see if that makes a difference.

1 Like