%%
Last Updated:
- [[2021-02-10]]
%%
## Problem
Connection to one Virtual IP (ex: thing.domain.com.au) works intermittently depending on the device.
## Cause
There are two servers sharing the VIP and one is not working.
## Possible Solutions:
### 1 Flush [[DNS]] on the computer where connection is unsuccessful.
```
ipconfig/flushdns
```
Then try to connect again. However, it's possible that you're still unlucky and still connect to the same faulty server.
### 2 Modify the hosts file to override DNS.
DNS is resolving thing.domain.com.au to a particular IP address (ex. 10.0.2.057). What we want is to force it to resolve to the IP of the server that we know works. Do this by modifying the following file:
```
C:\Windows\system32\drivers\etc\hosts
```
Type:
```
10.0.2.041 thing.domain.com.au
```
### 3 If the machine is a Windows machine, modify Windows LAN Manager, because the machine tries to resolve a name in the following order:
- Windows LAN Manager
- Hosts file
- DNS