Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
add comment

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.

share|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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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