Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-04-2007, 05:12 PM
|
#1
|
Member
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700
Rep:
|
OpenDNS
Hi,
I've been trying to get OpenDNS working on my Slackbox...
Situation:
Two computers (Slack and Ubuntu/W2000) are connected via a router (Speedtouch 546) to the internet. Both using DHCP with their static IP's.
I got it going on Ubuntu, but not on Slackware, at least, not for longer than a reboot. 
I tried netconfig and it works (using static IP's, instead of DHCP), but after a reboot, there is no connection (after setting the router up for static IP's).
From the site of OpenDNS:
Quote:
Using OpenDNS with DHCP
If you assign your computer's IP with DHCP, it probably overwrites your /etc/resolv.conf. Here's how to fix that:
1. Run: sudo gedit /etc/dhcp3/dhclient.conf
2. Change the prepend line to read:
Code:
prepend domain-name-servers 208.67.222.222, 208.67.220.220;
This will prepend the OpenDNS addresses to the top of the list. (You can also use "supersede", which will just use them.) You don't have to worry about the DHCP client overwriting settings on each reboot or lease cycle, and your ISP nameservers will still be used as backup.
3. Run: sudo /etc/init.d/networking restart
|
But this is not the way it works on Slack. Anyone who has an idea how to get this working?
|
|
|
05-04-2007, 05:40 PM
|
#2
|
Member
Registered: Aug 2005
Location: Guadalajara, Jal, Mexico
Distribution: Slackware Linux
Posts: 211
Rep:
|
Well, Slackware doesn't use dhclient, but dhcpcd.
(Assuming you haven't modified heavily your rc.inet1 file and you're running slack 11.0 (10.2?)) Try editing /etc/rc.d/rc.inet1.conf and adding
Code:
DHCP_KEEPRESOLV[0]="yes"
(You might have to change the array index appropiately).
That should tell dhcp to don't mess with your /etc/resolv.conf.
You might have to rewrite that file and most likely run as root "/etc/rc.d/rc.inet1 stop" before editing it and "/etc/rc.d/rc.inet1 start" after.
Last edited by theoffset; 05-04-2007 at 07:14 PM.
|
|
|
05-04-2007, 07:20 PM
|
#3
|
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
|
Can't you change the router settings ... it's a better solution IMO. I know some routers won't (like mine), because they use an internal or built-in DNS. Ok, it's not really a DNS, but it caches resolves ... so it's similar.
Last edited by H_TeXMeX_H; 05-04-2007 at 07:21 PM.
|
|
|
05-05-2007, 06:11 AM
|
#4
|
Member
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700
Original Poster
Rep:
|
Quote:
Originally Posted by theoffset
Well, Slackware doesn't use dhclient, but dhcpcd.
(Assuming you haven't modified heavily your rc.inet1 file and you're running slack 11.0 (10.2?)) Try editing /etc/rc.d/rc.inet1.conf and adding
Code:
DHCP_KEEPRESOLV[0]="yes"
(You might have to change the array index appropiately).
That should tell dhcp to don't mess with your /etc/resolv.conf.
You might have to rewrite that file and most likely run as root "/etc/rc.d/rc.inet1 stop" before editing it and "/etc/rc.d/rc.inet1 start" after.
|
Tried it, but no luck, I'm afraid.
After "/etc/rc.d/rc.inet1 start" everything is fine, but rebooting still rewrites /etc/resolv.conf...
I'm probably overlooking something, but what?
|
|
|
05-05-2007, 06:14 AM
|
#5
|
Member
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700
Original Poster
Rep:
|
Quote:
Originally Posted by H_TeXMeX_H
Can't you change the router settings ... it's a better solution IMO. I know some routers won't (like mine), because they use an internal or built-in DNS. Ok, it's not really a DNS, but it caches resolves ... so it's similar.
|
I agree, but I've gone through the menu's and manual of the router several times and can't get this configured (if possible at all). If someone has an idea, I'd be grateful (like I said, it's a Speedtouch 546).
|
|
|
05-05-2007, 06:19 AM
|
#6
|
Member
Registered: Mar 2006
Distribution: RedHat, Slackware, Experimenting with FreeBSD
Posts: 222
Rep:
|
Try setting the /etc/resolv.conf file to immutable after entering the correct DNS entries:
chattr +i /etc/resolv.conf
at least until you come up with a better solution.
|
|
|
05-05-2007, 04:18 PM
|
#7
|
Member
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700
Original Poster
Rep:
|
I got it going!
And indeed, OpenDNS is faster.
Thanks everyone for the hints & tips.
Had to turn off DHCP (off course also in the router) to get it going.
Now my Ubuntu/Windows box don't get connected, but I'll work it out.
|
|
|
05-05-2007, 06:29 PM
|
#8
|
Member
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 15
Posts: 700
Original Poster
Rep:
|
Quote:
Originally Posted by adriv
Now my Ubuntu/Windows box don't get connected, but I'll work it out.
|
Done! 
|
|
|
All times are GMT -5. The time now is 05:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|