On Ubuntu, when I change my eth0 network interface configuration between static and DHCP, the interface settings are updated nicely, but there seems to be a problem updating the DNS.
Before changing, I can refer to the Ubuntu machine from Windows 8 by it's hostname: gkgw-ea16. But after an IP address change, it seems that the changes are not propagated to the router (which I assume has a DNS server) and I'm no longer able to refer to gkgw-ea16 by it's hostname.
C:\Windows\System32>ping gkgw-ea16
Pinging gkgw-ea16 [192.168.1.78] with 32 bytes of data:
Request timed out.
Reply from 192.168.1.42: Destination host unreachable.
Reply from 192.168.1.42: Destination host unreachable.
Request timed out.
Ping statistics for 192.168.1.78:
Packets: Sent = 4, Received = 2, Lost = 2 (50% loss),
In fact Windows still assumes it's IP address is the same. If I then ping Ubuntu's new IP address from Windows or vice-versa, the hostname then magically becomes resolvable.
I'm not sure if the root cause of this problem is Ubuntu or router related, but what's the correct way to propagate a device's IP address change to the DNS server on a LAN?