[NTLUG:Discuss] SuSE 10.3 network script issue
Stephen Davidson
gorky at freenet.carleton.ca
Sun May 25 13:02:05 CDT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi David.
I am running a caching DNS server locally, specifically, dnsmasq (which
also does DHCP). External network card gets address via DHCP Client, as
well as nameservers to use for the internet. So, /etc/resolv.conf has
to get set dynamically.
To handle this (and allow local programs to use local dns cache),
dnsmasq wants 127.0.0.1 in the /etc/resolv.conf file, followed by the
Internet name servers.
So, following various instructions, in the file;
/etc/sysconfig/network/config
I set;
MODIFY_RESOLV_CONF_STATIC_DNS=127.0.0.1
MODIFY_RESOLV_CONF_DYNAMICALLY="yes"
When I clued in that this was not working, I attempted to find where
these variables were getting read. And that's when I hit the brick wall.
So far as I can determine, these values are not used at all anywhere
that's active, if they are even referenced. So, either I am wrong, or
the specified feature no longer exists (it was working in SuSE 10.1)
- -Steve
David Simmons wrote:
|
| 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
| _______________________________________________
| http://www.ntlug.org/mailman/listinfo/discuss
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFIOamdSphIUSiVzgYRAj9xAJ9W4Jxi+0ryZlLdYQJez3NYVyZlrQCfbqw6
sCD+xkPE4ZaVUWGZ4otellI=
=kc6n
-----END PGP SIGNATURE-----
More information about the Discuss
mailing list