[NTLUG:Discuss] SuSE 10.3 network script issue

David Simmons dave at dgnal.net
Sat May 24 23:23:08 CDT 2008



Guess the first question should be - "What are you trying to
do?".....if the answer is to have DNS searches point to your local
cache first.....list it as a nameserver in /etc/resolv.conf

If
you're trying to under-stand the inner workings of the SuSE
universe...that might be tricker?

- dave

>
-----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Greetings.
> 
> I am hoping this issue is a bit
more solveable than previous ones.
> 
> In my
/etc/sysconfig/network/config file, I have
>
MODIFY_RESOLV_CONF_STATIC_DNS
> set to a local DNS caching service
I am running.  In addition, I have;
>
MODIFY_RESOLV_CONF_DYNAMICALLY="yes"
> 
>
Unfortunately, something is getting ignored here.  Specifically, the
> address I am specifying is not getting set.  The network script
> responsible for this seems to be;
>
/etc/sysconfig/network/scripts/oldnet2new.sh
> Two issues I think
I've noticed;
> 1) This script does not seem to be called from
anywhere (I grepped the
> /etc directory looking for it).
> 2) While it references the MODIFY_RESOLV_CONF_DYNAMICALLY variable,
it
> does not reference the MODIFY_RESOLV_CONF_STATIC_DNS.  And as
far as I
> can determine, neither does anything else.
>

> ~From oldnet2new.sh -- is this right?  If not, what would be
the correct
> script (or ar settings), and how would I get it
called?
> 
> # Handle MODIFY_RESOLV_CONF_DYNAMICALLY
> if [ "$MODIFY_RESOLV_CONF_DYNAMICALLY" ]; then
>
~        sed -e \
> 
>
"s/^MODIFY_RESOLV_CONF_DYNAMICALLY=.*/MODIFY_RESOLV_CONF_DYNAMICALLY=$MODIFY_RESOLV_CONF_DYNAMICALLY/$
> ~        $MAINCONFFILE > "$MAINCONFFILE.new"
>
~        if [ -s $MAINCONFFILE.new ]; then
> ~                mv
$MAINCONFFILE.new $MAINCONFFILE
> ~        fi;
> fi;
> 
> Regards,
> Steve
> 
> -----BEGIN
PGP SIGNATURE-----
> Version: GnuPG v2.0.4-svn0 (GNU/Linux)
> Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
> 
>
iD8DBQFIOLv/SphIUSiVzgYRAhE/AJ9cINdMvQhpV83YX5k9Gv/Aig56qQCgiJuB
>
xjVmg3a+c9MP0D3AP/d8SdY=
> =kaPx
> -----END PGP
SIGNATURE-----
> 
>
_______________________________________________
>
http://www.ntlug.org/mailman/listinfo/discuss
>


More information about the Discuss mailing list