Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-14-2009, 04:44 AM   #1
LQ Newbie
Registered: May 2006
Posts: 25
Blog Entries: 1

Rep: Reputation: 15
Question 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???
Old 10-14-2009, 04:53 AM   #2
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,703

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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.
1 members found this post helpful.
Old 10-14-2009, 11:01 PM   #3
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38

Last edited by Smartpatrol; 03-11-2010 at 09:43 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
can't restrict sshd access through hosts.allow and hosts.deny but was working earlier farhan Linux - Security 4 04-18-2008 07:41 AM
Solaris Express CE and editing /etc/hosts , I do not have permission zillah Solaris / OpenSolaris 4 12-07-2007 03:32 AM
How to add hosts to Solaris server pranavojha Solaris / OpenSolaris 2 10-19-2007 08:12 AM
solaris 10: do I have to create my own hosts.deny? xpucto Solaris / OpenSolaris 1 11-15-2006 06:07 AM
solaris 9 rsh and /etc/hosts.equiv pymehta Solaris / OpenSolaris 3 01-19-2005 11:07 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration