LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-16-2010, 01:54 AM   #1
Dennola4
LQ Newbie
 
Registered: Jan 2009
Location: New Orleans
Distribution: Slackware, SalixOS, Puppy
Posts: 26

Rep: Reputation: 15
Need a script which reinstates original content of /etc/resolve.conf after using Wicd


I have discovered that after employing the Wicd Network Manager I can no longer connect via ppp. The reason, it seems, is that each instance of Wicd changes the content of my /etc/resolv.conf file from:

Code:
search SPRINT
nameserver 195.128.182.5
to:
Code:
Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
# /etc/resolv.conf.tail can replace this line
It has been suggested that I write a script that does this. I'm out of my league on that one. I'm asking for help writing it and understanding why it works.

Thanks.
 
Old 12-16-2010, 02:17 AM   #2
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,060

Rep: Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139Reputation: 4139
reading the output I see
Code:
# /etc/resolv.conf.head can replace this line
have you tried creating a file /etc/resolv.conf.head with the content
Code:
search SPRINT
nameserver 195.128.182.5
but I think it's the correct behaviour to overwrite that file when you have configured an active connection on wicd that uses dhcp (the resolv.conf must contain updated data for the connection you want to use, you can also set them statically).

Last edited by ponce; 12-16-2010 at 02:18 AM.
 
Old 12-16-2010, 02:49 AM   #3
Dennola4
LQ Newbie
 
Registered: Jan 2009
Location: New Orleans
Distribution: Slackware, SalixOS, Puppy
Posts: 26

Original Poster
Rep: Reputation: 15
So simple. DUH!

Following your thinking I made two files, one called /etc/resolv.conf.head containing the first line:

Code:
search SPRINT
and one called /etc/resolv.conf.tail containing the second line:

Code:
nameserver 195.128.182.5
...and that's all it took. Problem solved. Thanks. :-)
 
  


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
how to make a bootable cd/dvd to prevent change any content from original? hocheetiong Linux - Newbie 2 01-14-2009 11:39 PM
Unable to resolve ulr. /et/resolve.conf looks fine? TheBrick Linux - Networking 3 02-14-2008 04:13 AM
FC4 original yum.conf? BiLLie- Fedora 7 07-20-2005 04:31 PM
/etc/hosts, /etc/resolve.conf and /etc/host.conf config probs below_average Linux - Networking 1 12-08-2004 10:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:33 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
Open Source Consulting | Domain Registration