[Bug 1028268] [NEW] Bareword dns domain makes facter return incorrect info
Brad Marshall
1028268 at bugs.launchpad.net
Tue Jul 24 06:31:14 UTC 2012
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
Server Team, which is subscribed to facter in 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
More information about the Ubuntu-server-bugs
mailing list