add get_bsd_hostname() and has_domain()