Set domain to . if no domain is passed