LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-28-2003, 07:31 AM   #1
ricemark20
Member
 
Registered: Aug 2003
Location: Wauconda, Illinois, USA
Distribution: Slackware, OpenSuse, Arch Linux on Pi
Posts: 106

Rep: Reputation: 46
resolv.conf


When I try to log on to the internet, there is a message about
a problem with the file: resolv.conf
How do I resolve this?
 
Old 10-28-2003, 07:34 AM   #2
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Re: resolv.conf

Quote:
Originally posted by ricemark20
When I try to log on to the internet, there is a message about
a problem with the file: resolv.conf
How do I resolve this?
You, sir, are witty beyond your own knowledge.

What exactly is the problem reported? The resolv.conf file is used to define your nameservers, which you need to get on the net in any sort of comfortable way.
 
Old 10-28-2003, 08:04 AM   #3
ricemark20
Member
 
Registered: Aug 2003
Location: Wauconda, Illinois, USA
Distribution: Slackware, OpenSuse, Arch Linux on Pi
Posts: 106

Original Poster
Rep: Reputation: 46
The message is that this file is missing or corrupted
 
Old 10-28-2003, 08:07 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
it should at minimum have this.
the zeros mean to auto configure.
you either may or should replace it with your nameserver or nameservers.

nameserver 0.0.0.0



i just noticed you didn't have the full path in your message, so maybe you
don't know, it should be /etc/resolv.conf

Last edited by whansard; 10-28-2003 at 08:08 AM.
 
Old 10-28-2003, 08:24 AM   #5
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Quote:
Originally posted by ricemark20
The message is that this file is missing or corrupted
Does the file exist? If it does, could you post the contents of this file (/etc/resolv.conf)?
 
Old 10-28-2003, 10:48 AM   #6
ricemark20
Member
 
Registered: Aug 2003
Location: Wauconda, Illinois, USA
Distribution: Slackware, OpenSuse, Arch Linux on Pi
Posts: 106

Original Poster
Rep: Reputation: 46
It does not exist.
 
Old 10-28-2003, 12:18 PM   #7
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Quote:
Originally posted by ricemark20
It does not exist.
Find out the IP address(es) of your nameservers from your ISP's (or from another box on your network), and put that in /etc/resolv.conf, like so:

Code:
nameserver 12.34.56.78
nameserver 90.12.34.56
... but putting in your own nameservers of course.
 
Old 10-28-2003, 09:53 PM   #8
ricemark20
Member
 
Registered: Aug 2003
Location: Wauconda, Illinois, USA
Distribution: Slackware, OpenSuse, Arch Linux on Pi
Posts: 106

Original Poster
Rep: Reputation: 46
I found the file, but when I tried to modify it, there was an error message: Check to see if you have write permissions. How do I get around this?


Last edited by ricemark20; 10-28-2003 at 09:56 PM.
 
Old 10-28-2003, 11:00 PM   #9
beatlelane
Member
 
Registered: Jun 2003
Location: Manila
Distribution: Bayanihan+RH9+FC1
Posts: 68

Rep: Reputation: 15
Quote:
Originally posted by ricemark20
I found the file, but when I tried to modify it, there was an error message: Check to see if you have write permissions. How do I get around this?
well, i think its obvious, you have to be the root user first before doing any configuration on your system.
 
Old 10-29-2003, 06:26 AM   #10
ricemark20
Member
 
Registered: Aug 2003
Location: Wauconda, Illinois, USA
Distribution: Slackware, OpenSuse, Arch Linux on Pi
Posts: 106

Original Poster
Rep: Reputation: 46
i'm new to Linux. how do you do that?
 
Old 10-29-2003, 07:37 AM   #11
laurentbon
Member
 
Registered: Mar 2003
Distribution: Slack 9.1 + Dropline Gnome
Posts: 160

Rep: Reputation: 30
open a console if you are inside a window manager (like kde or gnome) or at the command line type:
# su root

That will prompt you for the "root" user password which you have set during installation. enter it and hit the enter key.

Go on about your modification using an editor, very easy one to use is pico, so type:
# pico /etc/resolv.conf

Do your modifs and save them (CTRL+0 on pico)
You are done. Close the terminal or type 'exit' to stop being root!
 
Old 10-31-2003, 10:28 PM   #12
ricemark20
Member
 
Registered: Aug 2003
Location: Wauconda, Illinois, USA
Distribution: Slackware, OpenSuse, Arch Linux on Pi
Posts: 106

Original Poster
Rep: Reputation: 46
since i am using Mandrake 9.1, i typed su <enter>, then the root password. i was able to edit /etc/resolv.conf using Kedit and saved it. now when i connect, kppp dials fine, but then give me an error message: Daemon was killed, error 16.


Last edited by ricemark20; 11-11-2003 at 04:09 PM.
 
Old 11-11-2003, 04:08 PM   #13
ricemark20
Member
 
Registered: Aug 2003
Location: Wauconda, Illinois, USA
Distribution: Slackware, OpenSuse, Arch Linux on Pi
Posts: 106

Original Poster
Rep: Reputation: 46
I solved my own problem. Just changed the login protocol from script to PAP. Now KPPP stay logged in.

Last edited by ricemark20; 11-11-2003 at 04:10 PM.
 
  


Reply



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 03:12 PM
resolv.conf?? wrat Linux - Newbie 3 06-14-2004 04:37 PM
resolv.conf jmdlcar Slackware 9 05-15-2004 11:44 AM
resolv.conf dnsbum Linux - Networking 1 10-21-2003 12:00 PM
resolv.conf Culbert Linux - Networking 8 03-20-2003 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:27 AM.

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
Open Source Consulting | Domain Registration