When hostname is properly working on a system all of the following commands should work as expected:
#uname -n #hostname -a #hostname -s #hostname -d #hostname -f #hostname Source: http://www.debianadmin.com/change-hostname-or-server-name-of-a -linux-machine.html -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to cloud-init in ubuntu. https://bugs.launchpad.net/bugs/596993 Title: hostname handling needs improvement for elastic-ip and ebs start-stop -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs