Issue #7484 has been reported by Edouard Bourguignon.

----------------------------------------
Bug #7484: facter fqdn is empty when domainnames aren't containing any dot (ie 
tld)
https://projects.puppetlabs.com/issues/7484

Author: Edouard Bourguignon
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Keywords: tld fqdn hostname dot
Branch: 
Affected Facter version: 


As far as I understand the following regexp used in domain.rb to find out the 
domainname:
        domain = Facter::Util::Resolution.exec('dnsdomainname')
        next domain if domain =~ /.+\..+/
domainname must contain a dot, which is not completely compliant with RFCs[ยน] 
and prevent using facter on tld servers.

How to reproduce:
On a server with fqdn "ns01.tld", this is the result of some commands:
hostname => ns01 (OK)
hostname -f => ns01.tld (OK)
facter hostname => ns01 (OK)
facter fqdn => (bad)
dnsdomainname => tld (OK) but dnsdomainname command had to be installed

facter fqdn should return ns01.tld and should be (<ins>very important</ins>) 
consistent with "hostname -f".

[1]: RFC921: Every current name in this new system has the form
         "old-simple-name.ARPA".  That is, the all the hosts are in a
         domain called "ARPA"


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to