[Pkg-puppet-devel] Bug#682376: facter: ignores domain in /etc/hosts, uses only 'search' or 'domain' from /etc/resolv.conf

Andrei POPESCU andreimpopescu at gmail.com
Sun Jul 22 09:07:04 UTC 2012

Package: facter
Version: 1.6.10-1
Severity: normal


I have the following situation:

/etc/hostname: myhostname
/etc/hosts:   myhostname.mydomain     myhostname
/etc/resolv.conf: nameserver # and nothing else

and facter doesn't return any fqdn (which instead affects puppet). I can 
get facter to return the fqdn if I specify 'search mydomain' or 'domain 
mydomain' in /etc/resolv.conf.

1.5.7 from stable doesn't do this. My web searches seem to suggest this 
has been fixed upstream in versions previous to 1.6.10, or am I missing 

Kind regards,

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.2.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=ro_RO.UTF-8, LC_CTYPE=ro_RO.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages facter depends on:
ii  bind9-host [host]             1:9.8.1.dfsg.P1-4.1
ii  net-tools                     1.60-24.1
ii  ruby                          4.9
ii  ruby-json                     1.7.3-2
ii  ruby1.8 [ruby-interpreter]
ii  ruby1.9.1 [ruby-interpreter]

Versions of packages facter recommends:
ii  dmidecode  2.11+20120326-2
ii  pciutils   1:3.1.9-5

facter suggests no packages.

-- no debconf information

More information about the Pkg-puppet-devel mailing list