saltstack/salt — pull request #5088 by mguegan (2013-05-17 12:23:36+00:00)
Title: grains/core : fix fqdn / domain return on SunOS systems

getfqdn() on Solaris platforms returns the unqualified hostname. In
that case, using gethostname() could be a solution.

Tested on SmartOS / Solaris 11 / FreeBSD