Added custom domain name support

Fixed #1