How to access custom domain name from Rule