Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am pretty new to Linux and trying to install a package using yum in RHEL5 linux. Even the simplest of the simple packages I am not able to install and it looks like naming server issue. I tried changing name server to googles as in /etc/resolv.conf file to

\\; generated by /sbin/dhclient-script
search compute-1.internal

Even when I am trying to wget a file also I am getting the following error

wget --2012-12-03 14:45:14-- Resolving failed: Temporary failure in name resolution. wget: unable to resolve host address `'

Even the directy Yum installs are also failing for the same reason

root@domU-12-31-39-10-09-BD x11vnc-0.9.14]# yum install whoami
Failed to set locale, defaulting to C
Loaded plugins: amazon-id, fastestmirror, rhui-lb, security
Loading mirror speeds from cached hostfile
 * rhui-us-east-client-config-server-5:
 * rhui-us-east-rhel-server: [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Trying other mirror. [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Trying other mirror. [Errno 4] IOError: <urlopen error (-2, 'Name or service not known')>
Trying other mirror.

If anyone can help me on 1) How to change the default yum repository to a different one, something like rpmforge 2) How can I resolve this name or service unknown error.

Thanks in advance

share|improve this question
Can you resolve other URLs? – terdon Dec 3 '12 at 20:19
What happens when you ping I'm convinced that your DNS is not resolving. Is this an AWS instance? Otherwise, why do you have search compute-1.internal in there? I would removed the search line, and add in google's secondary DNS after the primary. It is – Ian Atkin Dec 3 '12 at 20:34
@terdon I can't resolve any of the URLs – irraju Dec 4 '12 at 3:00
You are off topic, this has nothing to do with yum. Please configure your network properly before starting yum installs. You need a DNS, try one from openDNS. and – Dejan Dec 4 '12 at 15:12

You must log in to answer this question.

Browse other questions tagged .