In Windows System, there is this file at C:\WINDOWS\system32\drivers\etc\hosts
. This file allows us to default a specific IP address to a host name.
The issue now is whether I can set multiple IP addresses to a host name. For example, can I do something like this:
192.168.244.128 gateway.net
192.168.226.129 gateway.net
And expect that the browser can resolve to both of them, see which one will work and thus point at that one?
If not, is there any other way to get the behavior I want?
Note: I am deploying this app in my own local area network, so there is no need for internet.