Each time I change my IP address I have to go edit /etc/hosts and change the line:myPc-Vaio  192.168.1.xI need this change for some programs I am using, so I can't just set the line to 127.0.0.1.Is there some automation to change that line on each network change?edit.I am on kubuntu 13.10 and I am using dhcp servers with ubuntu's default dhclient to obtain new ip addresses (default configuration).
Dynamically change /etc/hosts
networking;kubuntu;hosts