Overview
The steps to create a DNS alias in this article do not allow you to connect to your DreamObjects bucket with a secure (HTTPS) connection. If you require a secure connection to your DreamObjects buckets, please view the following article instead.
DreamObjects allows you to create aliases that point to your buckets using CNAME records. Using a CNAME record in this way makes your links look more professional as they do not show the full 'objects-us-east-1.dream.io' portion of the URL.
For example, you can use a CNAME record to map a DreamObjects bucket URL to a domain under your control, like media.example.com. This way, a URL for your object would be media.example.com/object rather than bucket.objects-us-east-1.dream.io/object.
Examples of CNAME records and bucket
CNAME Record | DH Bucket to which it points |
bucket.example.com | bucket.objects-us-east-1.dream.io |
bucket.example.com/object | bucket.objects-us-east-1.dream.io/object |
The panel configuration option is not required in order for an alias to function properly. If you are not using DreamHost’s nameservers, all you need to do is substitute the name of your bucket in the above example and manually create a custom DNS record of type CNAME on your third-party nameservers.
Adding a DreamObjects CNAME record
You can create, delete and modify your DreamObjects CNAME records within the panel using the built-in interface.
- Navigate to the DreamObjects page.
- To the right of your bucket, click the Change Settings link.
- A new window appears.
- Toggle the permissions option to either PRIVATE or PUBLIC.
- Enter your alias and choose the domain you wish to assign this to.
- Click the Save Settings button.
If you're using a third-party DNS
To view the record after it's created:
- Navigate to the Manage Websites page.
- Open the DNS Settings page:
- If in Grid view, click the 'vertical 3 dots' button under your domain. From the popout menu, click the DNS Settings link.
- If in List view, click the 'vertical 3 dots' button to the right of your domain. From the popout menu, click the DNS Settings link.
- The domain's DNS records display.
If you’re using a third-party DNS, you must copy this CNAME record from the panel to your current hosting company's DNS records.
Linking a file using the CNAME record
The following example uses the CNAME to link an image file:
https://blog.example.com/image.png
If your image is in a subdirectory (in DreamObjects), you must specify the full path. This example shows that the image.png file is in the /savedimages/ folder.
https://blog.example.com/savedimages/image.png