Fully Qualified Domain Name under Solaris 8
Submitted by ironstorm.
on 2007-04-28 05:13.
Seems there is no portable way to resolve the FQDN, one way to get this info on Solaris 8 (an OS a bit on the barren side tooling-wise) is to ask the mailer as follows:
FQDN=`/usr/lib/mail/sh/check-hostname|cut -d" " -f7`