Have you tried this?

Modify the loopback entry in /etc/hosts to be:

127.0.0.1          localhost localhost.localdomain yourchosenhostname

(all on one line). Untested.


>>> goldman at htc.honeywell.com 01/10/02 09:33AM >>>
>>>>> "BL" == Ben Lutgens <blutgens at sistina.com> writes:

    BL> On Wed, 2002-01-09 at 11:25, Robert P. Goldman wrote:
    >> Sorry.  I should have pointed out that I have a small network
    >> behind a firewall, and the firewall serves up the DNS addresses
    >> to the machines behind the firewall using DHCP.  So I'm not
    >> sure how to use a hosts file to keep track of addresses.  I
    >> hate to go to the trouble of setting up a DNS server for what
    >> seems like a trivial net.  Is there an alternative?

    BL> Yes, the /etc/hosts file. Add what we told you to the
    BL> /etc/hosts file of the mailserver and all will be well. The IP
    BL> you use is the actual address of the machine on your LAN.

So is there some way I can use if-up or some such mechanism to
automagically echo the dhcp-issued ip address into /etc/hosts?

Otherwise, since my IP address isn't fixed, there's no way to know a
priori what address should go into /etc/hosts, is there?

R
_______________________________________________
Twin Cities Linux Users Group Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org 
tclug-list at mn-linux.org 
https://mailman.mn-linux.org/mailman/listinfo/tclug-list