LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-13-2005, 04:07 PM   #1
gregf50
LQ Newbie
 
Registered: Mar 2005
Posts: 19

Rep: Reputation: 0
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.
 
Old 04-13-2005, 04:11 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

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


Cheers,
Tink
 
Old 04-13-2005, 04:16 PM   #3
gregf50
LQ Newbie
 
Registered: Mar 2005
Posts: 19

Original Poster
Rep: Reputation: 0
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.
 
Old 04-13-2005, 04:23 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
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
 
Old 04-13-2005, 04:47 PM   #5
gregf50
LQ Newbie
 
Registered: Mar 2005
Posts: 19

Original Poster
Rep: Reputation: 0
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.
 
Old 04-13-2005, 05:13 PM   #6
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
You got command not found when you entered your password? did you get to root?
 
Old 04-13-2005, 05:23 PM   #7
gregf50
LQ Newbie
 
Registered: Mar 2005
Posts: 19

Original Poster
Rep: Reputation: 0
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.
 
Old 04-13-2005, 05:23 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 04-13-2005, 06:10 PM   #9
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
resolv.conf albundy Linux - Software 5 12-14-2004 04:12 PM
/etc/resolv.conf mustangfanatic SUSE / openSUSE 5 10-18-2004 10:28 PM
resolv.conf?? wrat Linux - Newbie 3 06-14-2004 05:37 PM
resolv.conf ricemark20 Linux - Networking 12 11-11-2003 05:08 PM
Resolv.conf tristan_vdv Linux - Networking 2 11-20-2001 07:49 PM


All times are GMT -5. The time now is 03:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration