In this recipe, we will look at how to use custom domain names with S3. Using custom domains with S3 requires that the domain name (including the WWW sub-domain) is the same as that of the bucket name. We can have a bucket for a naked domain (for example, qnatime.com), and another bucket for its WWW sub-domain (for example, www.qnatime.com); the WWW sub-domain forwards the request to the naked domain.