support lookups with or without domain name