When building the URL used to resolve the CNAME, use settings values rather than hard coded value