Issues were:
- IPV6 enabled
- Wrong DNS server
Here is how I fixed it:
IPV6 Disabling
- Open Terminal
- Type
suand enter to log in as the super user - Enter the root password
- Type
cd /etc/modprobe.d/to change directory to/etc/modprobe.d/ - Type
vi disableipv6.confto create a new file there - Press
Esc + ito insert data to file - Type
install ipv6 /bin/trueon the file to avoid loading IPV6 related modules - Type
Esc + :and thenwqfor save and exit - Type
rebootto restart fedora - After reboot open terminal and type
lsmod | grep ipv6 - If no result, it means you properly disabled IPV6
Add Google DNS server
- Open Terminal
- Type
suand enter to log in as the super user - Enter the root password
- Type
cat /etc/resolv.confto check what DNS server your Fedora using. Mostly this will be your Modem IP address. - Now we have to Find a powerful DNS server. Luckily there is a open DNS server maintain by Google.
- Go to this page and find out what are the “Google Public DNS IP addresses”
- Today those are
8.8.8.8and8.8.4.4. But in future those may change. - Type
vi /etc/resolv.confto edit theresolv.conffile - Press
Esc + ifor insert data to file - Comment all the things in the file by inserting # at the begin of the each line. Do not delete anything because can be useful in future.
- Type below two lines in the filenameserver 8.8.8.8
nameserver 8.8.4.4-TypeEsc + :and thenwqfor save and exit - Now you are done and everything works fine (Not necessary to restart).
- But every time when you restart the computer your /etc/resolv.conf will be replaced by default. So I’ll let you find a way to avoid that.
Here is my blog post about this: http://codeketchup.blogspot.sg/2014/07/how-to-fix-curl-6-could-not-resolve.html