LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problems with /etc/resolv.conf (https://www.linuxquestions.org/questions/linux-newbie-8/problems-with-etc-resolv-conf-312905/)

gregf50 04-13-2005 03:07 PM

Problems with /etc/resolv.conf
 
Hi,

I had some problems with my Fedora Core 3 installation some time ago. I've only just now been able to get back to it. I found out that I had to get a static IP set up, which I did. So I put this information into the install. Then I tried to do yum update, and I got a message saying that it could not find a valid baseurl for repo: base, which was the message I got before. I tried to access /etc/resolv.conf, and I was denied access, and I am logged in as the root user!
Can someone help me out on this? Thanks,

Greg.

Tinkster 04-13-2005 03:11 PM

In which way did you "try to access" /etc/resolv.conf,
and what exactly was the message you got?


Cheers,
Tink

gregf50 04-13-2005 03:16 PM

Problems with /etc/resolv.conf
 
Hi Tink,

I just typed /etc/resolv.conf at the prompt. (If that's wrong, please bear with me, I'm new!).

Greg.

comprookie2000 04-13-2005 03:23 PM

You need to open it with a text editor,I think fedora comes with pico try;
Code:

su
<password>
pico -w /etc/resolv.conf

press the ctrl key + o to save and ctrl key + x to exit

gregf50 04-13-2005 03:47 PM

Problems with /etc/resolv/conf
 
Hi,

I tried the code:

su
<password>
pico -w /etc/resolv.conf

but it did not work. I typed su then <Enter>, then my root password. I got a message saying command not found. I tried pico and got the same message. Am I doing something wrong, or is there something else to try?

Greg.

comprookie2000 04-13-2005 04:13 PM

You got command not found when you entered your password? did you get to root?

gregf50 04-13-2005 04:23 PM

Problems with /etc/resolv.conf
 
Hi,

I am in the root. I logged in as the root user. I tried su again just now, specifying that I want to go to the root directory, and the prompt showed that I am in the root, but I am still being denied access to /etc/resolv.conf. I can't figure it out! I am sure that this is the reason why yum and wget will not work, because I am sure that my network settings are correct.

Greg.

Tinkster 04-13-2005 04:23 PM

That means you don't have pico installed ...
use some other editor, e.g. vi, emacs, or even
midnight commander (mc is the way to invoke it).

And yes. Just typing /etc/resolv.conf will give an
error since it's not executable.


Cheers,
Tink

dcdbutler 04-13-2005 05:10 PM

Just curious about why you need to edit resolv.conf. The only information in here is usually a nameserver entry and search entry, which should have been generated automatically during the install.
If yum is not working, it sounds like you need to edit yum.conf, not resolv.conf.

Cheers!


All times are GMT -5. The time now is 08:45 PM.