I am trying to find what my VM's hostname is. When I do cat /etc/hosts I get:
127.0.0.1 localhost
Is localhost the hostname? The DNS domain name isn't written where do I find that? When I write hostname -d I get hostname: Name or service not known