Re: /etc/hosts behavior
- From: Dan Williams <dcbw redhat com>
- To: "Philip A. Culver" <pculver bostonatlantic net>
- Cc: networkmanager-list gnome org
- Subject: Re: /etc/hosts behavior
- Date: Mon, 16 Mar 2009 14:07:27 -0400
On Fri, 2009-03-13 at 15:10 -0400, Philip A. Culver wrote:
> Hello,
>
>
>
> I am seeing behavior in some situations where the /etc/hosts file get
> updated with
>
>
>
> 127.0.0.1 myhostname localhost.localdomain localhost
>
> Realip myhostname
>
>
>
> Notice myhostname is now linked to the loopback address.
Looking into this; though most of the examples out there say really odd
and not relevant stuff like "if using static IP use realip+hostname,
otherwise if DHCP use 127.0.0.1+hostname", which is, well, wrong.
If this does need to be changed, I think I'd with a fix where, when
connected to something, NM always wrote out realip+hostname, and when
disconnected, used 127.0.0.1+hostname.
Dan
>
>
> This causes JBoss server instances to not properly bind to the
> external IP but only the loopback in our application.
>
>
>
> I looked in NetworkManagerPolicy.c and saw that the update_etc_hosts
> procedure seems to do this modification. Is there a particular
> reason this is done? What situations would cause this to occur? It
> seems to me to be a bad idea
>
>
>
> Thanks,
>
> Phil
>
>
>
>
> _______________________________________________
> NetworkManager-list mailing list
> NetworkManager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]