Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .