I'm running Ubuntu 14.04 on my company's cloud service (my instance has elastic IP)I want to check out IP of my instance I'm running by command line but it didn't work.root@ubuntu14-graphite:~# hostnameubuntu14-graphiteroot@ubuntu14-graphite:~# hostname -ihostname: Name or service not knownI don't understand the reason why. Hope someone could help me.@So I tried to ping to ubuntu14-graphite but it said: unknown host ubuntu14-graphite. Does that mean my host not even exists?I have another server (not cloud instance but physical server). In this server installed CentOS 6.7, I checked the hostname's IP and it worked even though there was nothing special in /etc/hosts.
I got error hostname: Name or service not known when checking IP of hostname
ubuntu;hostname