Only restart network if the hostname changes