Ticket #6670 (closed defect: duplicate)
DNS breaks when moving a laptop from network to network
|Reported by:||ij||Owned by:|
My use case: I have a Windows laptop running virtualbox. Periodically I suspend the laptop and move it from one office to another. I have an Ubuntu virtual machine in saved state when this happens.
What happens: the virtual machine, when I use it, can't resolve addresses. Investigation reveals that it has the previous network's DNS server set.
I presume that the VM is never notified of the change of DNS server. I don't know if the machine would receive a DNS server update if it is running. I can see that it doesn't when it's saved.
A proposed solution:
Instead of giving NATted VMs the address of the remote DNS server, have a local DNS proxy running on the NAT gateway. The local DNS proxy - running under the host OS - can forward the DNS requests to the laptop's currently set DNS server. The VMs are isolated from host machine configuration changes.