On Tue, 24 Oct 2000, Dan Brown wrote:
> I've recently noticed some strange things happening with
> /etc/resolv.conf. I'm pretty sure they started after I upgraded
> e-smith-base to 4.0.12-36 (I'm now at -38), but I'm not quite sure. I
> can't pinpoint what causes it to happen, but at some point, the file
> changes to:
[snip]
> domain e-smith.danb.mine.nu
> nameserver 38.9.213.2
>
> #------------------------------------------------------------
> # TEMPLATE END
> #------------------------------------------------------------
> nameserver 38.9.223.2
OK, this points to something modifying /etc/resolv.conf without doing so
by using the template system. Typical suspects would be DHCP clients or
PPP daemons. What Internet access protocol is your system configured to
use?
> Now, those IP addresses appear to be valid DNS servers for psi.net, who
> operates the POP that I dial in to, but why are they coming up into my
> resolv.conf?
OK, I can answer my own question - you are using dialup.
Here's a fix:
Create
/etc/e-smith/templates-custom/etc/sysconfig/network-scripts/ifcfg-ppp0
which is a copy of
/etc/e-smith/templates/etc/sysconfig/network-scripts/ifcfg-ppp0. Now
create
/etc/e-smith/templates-custom/etc/sysconfig/network-scripts/\
ifcfg-ppp0/90NoResolvMods
containing:
RESOLV_MODS=no
Now do:
/sbin/e-smith/expand-template /etc/resolv.conf
/sbin/e-smith/expand-template /etc/sysconfig/network-scripts/ifcfg-ppp0
killall -HUP pppd
and tell me how you get on.
Charlie Brady [EMAIL PROTECTED]
http://www.e-smith.org (development) http://www.e-smith.com (corporate)
Phone: +1 (613) 368 4376 or 564 8000 Fax: +1 (613) 564 7739
e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada