I intend to change my organization IP CLASS from CLASS A or CLASS B for 250+nodes. I need to know if I can map a single host name for 2 different IP’s in the host file.

For Example.

192.168.100.1 apps.abc.com
10.0.0.1 apps.abc.com

Thanks and I look forward to hear from you soon.

link|improve this question
feedback

1 Answer

Yes, you can, but you won't get the round-robin effect that DNS normally provides -- once the first entry is encountered in your "hosts" file, the search [for the matching hostname] will end and this is what will be used.

link|improve this answer
+1 Though it seems that the pragmatic answer is actually "no". – msanford Apr 14 '11 at 23:34
1  
@msanford: Good point. I chose to go with a "yes" though just in case a future version of some OS actually incorporates support for this sort of thing (that's definitely "wishful thinking" on my part, although this would be an interesting feature). – Randolf Richardson Apr 15 '11 at 5:37
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.