[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: DHCP Client help



On Thu, 3 Oct 2002, Rapazito PT wrote:

> Which one is the dhcpc client conf file?
> I have dhcpc configured during RH7.3 instalation.
> 
> 
> 
> > On Wed, Oct 02, 2002 at 05:18:39PM -0700, Steven J. Yellin wrote:
> > > >
> > > >  I have a server with RH7.3 It has 2 ethernet cards, eth0 for
> > > >  cable modem connection with dynamic ip and eth1 for the LAN. My
> > > >  problem is that I have a nameserver configured in this same
> > > >  server box to act only for my LAN and, in case the request is
> > > >  outside the LAN it will be forwarded. It happens that each time I
> > > >  reboot the server (this is a test server so it get rebooted
> > > >  several times) my /etc/resolv.conf file is overwritten with my
> > > >  ISP nameservers information. How can I make the /etc/resolv.conf
> > > >  file not to be changed by dhcpc of eth0 ?
> > > >
> > >    See "man chattr".  To make /etc/resolv.conf "immutable" <-->
> > >    can't modify, delete, rename until root removes this attribute:
> > >    chattr +i /etc/resolv.conf But I don't know whether dhcpc will
> > >    continue gracefully when it finds itself unable to modify
> > >    resolv.conf.
> > 
> > Hmmm...wouldn't it be better to set PEERDNS=no, which takes care of
> > this. Or use the clients config file.
> > 
> > --
> > Hal Burgiss
> > 
    I'll answer this now because Hal hasn't yet done so.  His suggestion
sounds like it's more likely to work than mine, and he probably means that
you should put "PEERDNS=no" in /etc/sysconfig/network-scripts/ifcfg-eth0.

-- 
Steven Yellin





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]