Added option to specify base domain name