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

Re: updating /etc/hosts on ifup...



actually, I'm not sure one wants to do this as part of ifup at all,
but instead *specifically* as a dhcp hook.  I used to use a simple
/etc/pumpscript that ran "hostname" to set the hostname to whatever
the new ip address reverse-resolved to; didn't bother touching
/etc/hosts, after all, I had net, so I had dns...

now that pump is deprecated (redhat doesn't even use it anymore),
perhaps a package that just added dhclient-enter and -exit scripts of
its own (maybe using ucf to hook them from the "real"
/etc/dhclient-enter-hooks and /etc/dhclient-exit-hooks scripts?) would
be enough to do this.



Reply to: