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:
|
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" 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.
|
Quote:
After "/etc/rc.d/rc.inet1 start" everything is fine, but rebooting still rewrites /etc/resolv.conf... I'm probably overlooking something, but what? |
Quote:
|
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. |
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. |
Quote:
|
All times are GMT -5. The time now is 07:33 PM. |