We have a scenario:
- On-Prem Server
- Azure VM
We have an Azure PtS VPN between the two above servers.
There is a piece of software on the VM that relies on communicating with the On-Prem.
The issue is, the IP that gets assigned to the VPN 'adapter' on the On-Prem when the VPN gets connected, changes between 6 values and I cannot reduce the subnet from /29 to /30 in the Azure VPN PtS config as /29 is the lowest value one can use.
In essence, is there a way to query an IP address assigned to the VPN adapter on the On-Prem and then updates the hostfile on the VM?
Or is there another way one can have multiple IP's for a single hostname in the hostfile and it rotates? Overall, need to find a way that keeps the HostFile on the VM updated with the IP from the VPN adapter on the physical.