[chef] Re: fqdn and hostname


Chronological Thread 
  • From: Cassiano Leal < >
  • To:
  • Subject: [chef] Re: fqdn and hostname
  • Date: Thu, 24 Jan 2013 16:06:50 -0200

FQDN stands for fully-qualified hostname, so I'd say that the short host name shouldn't be used as one.

Have you tried running "hostname" and "hostname -f" on the host to see if it's actually properly configured? The former should give you the short hostname, and the latter, the fqdn.

- cassiano

On Thursday, January 24, 2013 at 15:40, wrote:


On an Ubuntu box, let's say the hostname is machine1.example.com.

In /etc/hosts, the first line is

1.2.3.4 machine1 machine1.example.com

What will chef consider the fqdn and hostname? Apparently just "machine1".

Now that I have discovered this strange quirk, I wonder if I should use this on
purpose, to make the machine names smaller. Or, be careful to avoid this
loophole. I am just thinking out loud. Do people generally use the whole
fqdn...




Archive powered by MHonArc 2.6.16.

§