Canonical way for DHCP->IP->/etc/hosts
wojtek at wojtek.tensor.gdynia.pl
Sun Dec 14 06:48:26 PST 2008
> I am sorry if this question has been asked over and over again - however the
> htdig search interface for the lists is somewhat shaky and gives referrer
> errors for me.
> Dualhomed firewalled FreeBSD7.1. One nic is LAN and the other dynamical IP
> from ISP.
> Question: What is the canonical way for catching the IP address from a DHCP
> assigned nic (from ISP that doesn't set hostname) and put the IP into
> /etc/hosts with a hostname?
you can specify your script that will be started on changes, but i won't
tell you ready-to-use example because i never needed it.
write your script that will fix /etc/hosts on IP change.
More information about the freebsd-questions