My Windows workstation and my Proxmox server are connected via a wired LAN. I've always SSHed into my Proxmox VMs via hostname, but hostname resolution suddenly stopped working, and I can't figure out why.
This began immediately after I physically moved my router. I had to disconnect all the cables and reconnect the router in a different location a few feet away in my office. As far as I can tell, nothing about my setup changed except maybe the ordering of the network cables in my router.
After I reconnected everything, I could no longer connect to my VMs by hostname from any of my Windows workstations. I have a Win10 desktop and laptop. Both can ping my PVE VMs by IP address, but when I try to ping/ssh by name, I get:
From a Raspberry Pi connected via Wi-Fi, everything still works the same. If I SSH into the Pi, I can ping and ssh VMs by hostname as normal.
Other details:
This began immediately after I physically moved my router. I had to disconnect all the cables and reconnect the router in a different location a few feet away in my office. As far as I can tell, nothing about my setup changed except maybe the ordering of the network cables in my router.
After I reconnected everything, I could no longer connect to my VMs by hostname from any of my Windows workstations. I have a Win10 desktop and laptop. Both can ping my PVE VMs by IP address, but when I try to ping/ssh by name, I get:
Code:
> ping python-dev
Ping request could not find host python-dev. Please check the name and try again.
From a Raspberry Pi connected via Wi-Fi, everything still works the same. If I SSH into the Pi, I can ping and ssh VMs by hostname as normal.
Other details:
- There were no software/configuration changes around the time this stopped working. It started after a physical router move.
- The VMs can ping each other by hostname.
- The VMs can ping my Windows desktop by hostname.
- Windows can ping/ssh my Proxmox VMs by IP, but fails to resolve them by hostname.
- The VM hostnames appear in the DHCP client table on my router.
- There are no firewall rules configured on my PVE datacenter or node.
- If I hardcode VMs by IP in the hosts file on my Windows machine, I can access the VMs again, but this is a pain.
- The Windows machines can access other physical Linux boxes on the network by hostname, just not my Proxmox VMs.
- Rebooted my Windows workstation
- Ran
ipconfig /flushdns
,ipconfig /release
,ipconfig /renew
from my Windows workstation - Rebooted Proxmox and restarted all of my VMs
- Flushed my router's DHCP table
- Rebooted my router
- Factory reset my router
- PVE version: 6.2-4
- Router: Linksys WRT1900ACS v1 with latest stock firmware
- VMs: All Ubuntu 18.04 server
- Workstation: Win10 Pro 1903