dnscname fqdn
dnscame takes the given fqdn for a host and employs an one-stage CNAME DNS lookup for fqdn. The retrieved DNS name could instead be an alias, rather than a canonical name. Use dnsfq to evaluate the entire CNAME chain.
dnscname return 0 on success, 1 in case no CNAME was found, and 111 in case of memory errors.
dnsfq(8), dnsmxip(8), dnsptr(8), dnstxt(8). 8 s/qmail:(dnscname)