[chef] Re: fqdn and hostname


Chronological Thread 
  • From: Lamont Granquist < >
  • To: < >
  • Subject: [chef] Re: fqdn and hostname
  • Date: Thu, 24 Jan 2013 10:47:17 -0800

On 1/24/13 9:40 AM, 

 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...

when you're doing a reverse lookup on 1.2.3.4 with that config you're getting back the first name which is the short hostname. to get the FQDN just reverse that to:

1.2.3.4 machine1.example.com machine1





Archive powered by MHonArc 2.6.16.

§