puppetlabs/facter — pull request #193 by jeffweiss (2012-05-02 23:50:07+00:00)
Title: (#12864) Windows: get primary DNS from registry

Windows does not expose the host's primary DNS suffix via WMI, only the
registry. This commit adds a registry helper class and will retrieve the
primary DNS suffix from the registry. In the case the primary DNS suffix
does not exist or is empty, the domain fact will fall back to using WMI
for any connection-specific DNS suffix.

Rebased against master. See Pull Request #192 for greater discussion.