[NTLUG:Discuss] SuSE 10.3 network script issue
Stephen Davidson
gorky at freenet.carleton.ca
Sat May 24 20:08:15 CDT 2008
-----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-----
More information about the Discuss
mailing list