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

updating /etc/hosts on ifup...



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


OK..

What originally drew me here was this bug:

http://www.blackdown.org/cgi-bin/jdk/done?id=19;user=guest

It seems to me that in

/etc/network/if-up.d we should have a script which changes the hostname in
/etc/hosts to the new IP address of that interface.

So when you do an 'ifup eth0' you would then change the 'hostname' entry in
/etc/hosts to the newly acquired IP.

In some situations this is highly desirable.  For example if you have a laptop
that is always on DHCP (like I do) you want your /etc/hosts always synched up.

Now on big server boxen you don't really want this.  Ideally this would be an
optional debian package.

Any thoughts?

This was originally noticed from the JXTA project...

http://vop2p.jxta.org/project/www/docs/DomainFAQ.html#Linux-Localhost

I am sure it would be nice to have a Debian solution to make RedHat look bad :)

Kevin

- -- 
Kevin A. Burton ( burton@apache.org, burton@openprivacy.org, burtonator@acm.org )
             Location - San Francisco, CA, Cell - 415.595.9965
        Jabber - burtonator@jabber.org,  Web - http://relativity.yi.org/

And the beast shall come forth surrounded by a roiling cloud of vengeance. The
house of the unbelievers shall be razed and they shall be scorched to the
earth. Their tags shall blink until the end of days.
    - from The Book of Mozilla, 12:10



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt

iD8DBQE8fewzAwM6xb2dfE0RAt8HAKCi0CvpXOeP1TtNTrbLO/W6h1CEdwCgimYp
7R5mm1vaFnVPzMi3dLA39GA=
=C03F
-----END PGP SIGNATURE-----



Reply to: