puppetlabs/facter — pull request #199 by hkenney (2012-05-09 17:44:39+00:00)
Title: (#7484) Domain Fact should handle TLD

The domain fact executed "hostname" on all platforms,
however the default on Linux is that "hostname" does not return FQDN.
This causes problems when the machine only has a TLD, rather than being
in a second level domain. For example, ns01.tld vs ns01.puppetlabs.com.

This patch makes 'hostname -f' to be opt-in to prevent problems
on certain operating systems such as Solaris and HP-UX.