Jan 26, 2013

HowTo: Fix Yum "Couldn't resolve host" Error in Fedora 18


** if you are getting a "Couldn't resolve host" response to this then simply do the following

       gedit /etc/resolv.conf
       look for the list of the nameserver and add the line below to the top of the list
       nameserver 8.8.8.8

       your /etc/resolv.conf should look something like this
       # Generated by NetworkManager
       domain smartbro.net
       search smartbro.net
       nameserver 8.8.8.8
       nameserver 121.1.3.81
       nameserver 121.1.3.16
       nameserver 121.1.3.66
       # NOTE: the libc resolver may not support more than 3 nameservers.
       # The nameservers listed below may not be recognized.
       nameserver 192.168.1.1

2 comments:

  1. This works both for Fedora 17 & Fedora 18. Many thanks!

    ReplyDelete
  2. This was driving me nuts, losing patience trying the various other hold a chicken in your left hand whilst commenting out a line in fedora-updates.repo then another in yum.conf.....
    Again this was on F17 - not exactly an intuitive solution mind.... back to that Linux chicken wobbling thing again aren't we, still at least this one works!! :-)

    ReplyDelete