← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1966533] Re: fqdn does not accept terminal dot

 

** Changed in: cloud-init
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1966533

Title:
  fqdn does not accept terminal dot

Status in cloud-init:
  Fix Released

Bug description:
  A fully qualified domain is not

      foo.bar.com

  But instead,

      foo.bar.com.

  Otherwise the fqdn hit up the resolver and searches on the network for
  a matching host. So if the resolver is on network

      foobar.com.

  And you query for `foo.bar.com` it'll look up a host by that name

      foo.bar.com.foobar.com.

  To stop this you fully-qualify with a terminal dot. This creates a
  problem because hostname does not accept a terminal dot,

  sudo hostname host-10-2-65-89.openstack.build.
  hostname: the specified hostname is invalid

  And cloud-init blindly submits the input to hostname. Which is weird,
  because you have to supply an fqdn which actually can _not_ currently
  be a fqdn. The desired fix for this would be to trim off the dot from
  the value supplied in fqdn, before providing it to hostname.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1966533/+subscriptions



References