A weird question on DNS and booting Mandrake

Tony Hammitt tony at speedscript.com
Fri Apr 13 14:45:31 CDT 2001


Mandrake and Red Hat both put a lot of stuff in /etc/sysconfig/network, so I'd
start by poking around in there.

You could put your fix.dns as the last line in /etc/rc.d/rc.local, too.  That way
it would run when needed.  This isn't a laptop is it?  I have lots of things to
reconfigure on mine depending on where it's plugged in.  If it's a desktop,
you can just do the same thing all of the time.. =-]

Later,

    Tony

----- Original Message ----- 
From: Kendric Beachey <ak at kc.rr.com>
To: <kclug at kclug.org>
Sent: Friday, April 13, 2001 9:25 AM
Subject: A weird question on DNS and booting Mandrake

> Every time I boot my Mandrake 7.2 machine, it overwrites /etc/resolv.conf so 
> that it contains only one entry, 127.0.0.1, which frankly doesn't do me a lot 
> of good.  I have made myself a short script called fix.dns that copies the 
> correct version of resolv.conf in its place, and I've taken to running that 
> as root before doing anything net-related such as reading mail.
> 
> There's got to be a better way.  Who can tell me where to look to stop the 
> automatic overwriting of /etc/resolv.conf?
> 
> This started one day after I'd been looking around in the various screens of 
> linuxconf.  I thought I wasn't actually changing anything, just looking 
> around, but maybe linuxconf thought differently.
> 
> -- 
> Kendric Beachey
> ak at kc.rr.com
> 
> DVD decryption in seven lines of Perl code:
> $_='while(read+STDIN,$_,2048){$a=29;$b=73;$c=142;$t=255;@t=map{$_%16or$t^=$c^=( 
> $m=(11,10,116,100,11,122,20,100)[$_/16%8])&110;$t^=(72, at z=(64,72,$a^=12*($_%16 
> -2?0:$m&17)),$b^=$_%64?12:0, at z)[$_%8]}(16..271);if((@a=unx"C*",$_)[20]&48){$h 
> =5;$_=unxb24,join"", at b=map{xB8,unxb8,chr($_^$a[--$h+84])}@ARGV;s/...$/1$&/;$ 
> d=unxV,xb25,$_;$e=256|(ord$b[4])<<9|ord$b[3];$d=$d8^($f=$t&($d12^$d4^ 
> $d^$d/8))<<17,$e=$e8^($t&($g=($q=$e14&7^$e)^$q*8^$q<<6))<<9,$_=$t[$_]^ 
> (($h=8)+=$f+(~$g&$t))for at a[128..$#a]}print+x"C*", at a}';s/x/pack+/g;eval
> 
> 
> 
> 




More information about the Kclug mailing list