[NTLUG:Discuss] SuSE 10.3 network script issue

terry trryhend at gmail.com
Tue May 27 08:03:10 CDT 2008


I would suggest you use yast to configure network settings -
afterward, you can look to see what files were modified at that moment
and therefore find out how SuSe is doing these things now-days.


/etc/resolv.conf is usually modified by dhcpcd



On Sat, May 24, 2008 at 8:08 PM, Stephen Davidson
<gorky at freenet.carleton.ca> wrote:
> -----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