checking if a domain is specified when target is chosen