Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I just inherited a RHEL 4.1 minimal image server and am trying to set it up but I can only seem to access ip addresses and not domain names. (exmaple: wget doesn't work, wget does though).

How can I fix this -- this is preventing me from using yum/rpm etc

share|improve this question

4 Answers 4

up vote 10 down vote accepted

Add your DNS addresses to /etc/resolv.conf.

nameserver <address of DNS1>
nameserver <address of DNS2>
share|improve this answer
wowwwwww thanks!!!! –  thanksyo Aug 25 '09 at 17:36

if you get you network configuration with DHCP, check in the file /etc/dhcp3/dhclient.conf that you have the following statement :

request domain-name-servers;
share|improve this answer

Use the /etc/resolv.conf file to determine the DNS servers like this :

nameserver <server dns 1>
nameserver <server dns 2>
If you dont know what dns to use, here an example with opendns servers

cat >> /etc/resov.conf

share|improve this answer

You need to add some DNS servers to your IP config. You can do this by firing up your favourite editor and adding the following to /etc/resolv.conf :

nameserver <ip of primary DNS server>
nameserver <ip of secondary DNS server>

Alternatively, if you use DHCP to get your IP addresses, make sure that the DHCP server is actually configured to give out Name Servers and then check dhclient.conf (usually /etc/dhcp*x*/dhclient.conf) includes the following:

request domain-name-servers;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.