[omniORB] /etc/hosts on Linux

Gregory Giguashvili Gregoryg@ParadigmGeo.com
Sun Jun 16 14:16:00 2002


Hello Bjorn,

Thanks for the reply.
The problem is in the way OmniORB creates IOR. I think the IOR creation
depends on the contents of /etc/hosts file regardless the configuration of
/etc/nsswitch.conf. 
Neither can I use host names, since they are not always available through
DNS. 

My final goal is to have IOR, which contains all network interfaces of the
machine, which created the IOR. Currently, it seems to be awkward when using
incomplete /etc/hosts file.

Please, let me know if I can change anything in /etc/nsswitch.conf to make
omniORB use all net interface information.

Thanks
Giga

-----Original Message-----
From: bjorn rohde jensen [mailto:shamus@tdcadsl.dk]
Sent: Sunday, June 16, 2002 1:16 PM
To: Gregory Giguashvili
Cc: 'omniorb-list@realvnc.com'
Subject: Re: [omniORB] FW: /etc/hosts on Linux


Hi Gregory,

 OmniORB uses ip addresses in its object references by default, which
really should not give you any problems, unless you want to use
persistent
references. It is true, that omniORB depends on a properly configured
transport layer such as tcp in order to function reliably, but i do not
think, the proper solution to dealing with misconfigured networks is to
add functionality to omniORB, it seems more reasonable to properly
configure
the transport layer.
 If the DHCP server is properly configured, you should not need to
modify
the /etc/hosts file manually. On getting a lease from the DHCP server
for
an ip address you should get an address with matching dns and rdns
entries,
if dns is used on your local net.
 Is your DHCP server in sync with the dns? Have you configured your
resolver
to look in /etc/hosts before querying a dns server? You probably should
only
have entries for the loopback interface in your hosts file.
 If you really want to mess with omniORBs hostname and interface
settings,
i guess, you could set the OMNIORB_USEHOSTNAME environment variable to
something funky like a string with the ip address of the interface, you
want
to use. It is not a good idea though;)

Yours sincerely,

Bjorn