Use hostname and domainname for mapping