SlackwareThis 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.
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.
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:
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?
(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.
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.
(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?
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.