Connection problem on terminal

Hi Guys,
I’m new to Fedora 32 but use Ubuntu since from begin. I installed fedora 2 days ago and I’m having a weird problem. The Firefox is working fine but when a try to use the terminal to use composer or npm it does not connect.
If I try to
$ ping
PING (2800:3f0:4001:816::2004)) 56 data bytes
The ping does not work, but if I try:
$ ping

It works fine.

Does anyone know what is happening?

Another example:

$ composer require admad/cakephp-jwt-auth

The “https: // repo.packagist. org/packages.json” file could not be downloaded: failed to open stream: Connection timed out could not be fully loaded, package information was loaded from the local cache and may be out of date

The “
da9ba96bd6eba2d4aba2e7082bf08330028c50b25b5c942.json” file could not be dow
nloaded: failed to open stream: Connection timed out


I suspect your dns servers have not been configured correctly, are you using dhcp or a static IP? Can you please provide the output of:

cat /etc/resolv.conf

I suspect this is because firefox uses doh by default:

Thanks Tom.

Sorry, my bad. Turns out that the problem was with my router and not with Fedora.


No worries, glad to hear its sorted.

Thanks Tom.