Public bug reported: If you are using a bare word dns domain (.test for example), facter fqdn returns the incorrect information. Since there's no . in the domain, the checks fall back to parsing /etc/resolv.conf, which may not be correct.
$ hostname eagle $ dnsdomainname test $ facter fqdn eagle.example.com $ cat /etc/resolv.conf search example.com nameserver 192.168.1.1 If I edit resolv.conf to include domain test or include it as the first entry in search, facter returns the right value: $ cat /etc/resolv.conf domain test search example.com nameserver 192.168.1.1 $ facter fqdn eagle.test $ cat /etc/resolv.conf search test example.com nameserver 192.168.1.1 $ facter fqdn eagle.test The version of facter I tested this on is: $ dpkg-query -W facter facter 1.6.5-1ubuntu1 And this is running on precise: $ lsb_release -rd Description: Ubuntu 12.04 LTS Release: 12.04 Please let us know if you need any more information. ** Affects: facter (Ubuntu) Importance: Undecided Status: New ** Tags: canonistack -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1028268 Title: Bareword dns domain makes facter return incorrect info To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/facter/+bug/1028268/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs