LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Solaris - /etc/hosts (https://www.linuxquestions.org/questions/linux-networking-3/solaris-etc-hosts-761782/)

furqan_sindhu 10-14-2009 04:44 AM

Solaris - /etc/hosts
 
Hello All,

I have a Solaris server which has 2 entries as given below

123.234.345.456 Server1 MS
987.876.765.654 Server1 MS


Now, actually both IPs, point to the same physical server, i.e. multiple interfaces. I would like to know what is the impact of having such config in /etc/hosts.

if we do like "ssh Server1", what IP would it try? and what if one interface is down, will it automatically try the other interface???

jlliagre 10-14-2009 04:53 AM

These are hardly IP addresses. Each component is a byte so should be in the 0-255 range. Anyway, there is no round robin done when the backend is /etc/hosts so I guess the first IP address is always picked when you resolve "Server1" and communication just fails if this interface is down.

Smartpatrol 10-14-2009 11:01 PM

...


All times are GMT -5. The time now is 12:33 PM.