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. |
In which way did you "try to access" /etc/resolv.conf,
and what exactly was the message you got? Cheers, Tink |
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. |
You need to open it with a text editor,I think fedora comes with pico try;
Code:
su |
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. |
You got command not found when you entered your password? did you get to root?
|
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. |
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 |
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. |