Skip to content

Instantly share code, notes, and snippets.

@phunehehe phunehehe/ Secret
Created Aug 30, 2017

What would you like to do?
echo > /etc/hostname
sed --in-place 's/preserve_hostname: false/preserve_hostname: true/' /etc/cloud/cloud.cfg
sed --in-place 's/DHCLIENT_SET_HOSTNAME="yes"/DHCLIENT_SET_HOSTNAME="no"/' /etc/sysconfig/network/dhcp
hostname myhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.