Configuring DNS for your domains

DNS is the technology that allows your domain to point to a specific IP address and allows the server listening on it to host your domain. There are several different types of records, but the most commonly used ones are:

  • A - Used to link a domain or subdomain to an IPv4 address.
  • AAAA - Used to link a domain or subdomain to an IPv6 address.
  • CNAME - Used to link a domain or subdomain to another domain or subdomain.

For most purposes, you’ll only need to use A and AAAA records.

Locating your public IP address

Each DreamCompute instance in the US-East 2 cluster is assigned a public IPv4 and IPv6 address.

You can view these addresses in two ways:

DreamCompute dashboard option

../../_images/DreamCompute-find-network-info.png

OpenStack command line options

[user@localhost]$ openstack server list
+--------------------------------------+---------+--------+------------+-------------+-------------------------------------------------------------+
| ID                                   | Name    | Status | Task State | Power State | Networks                                                    |
+--------------------------------------+---------+--------+------------+-------------+-------------------------------------------------------------+
| 10a3b11b-dc2f-42a2-b5d8-84508a5156a5 | website | ACTIVE | -          | Running     | public=208.113.128.37, 2607:f298:5:101d:f816:3eff:fe79:8c72 |
+--------------------------------------+---------+--------+------------+-------------+-------------------------------------------------------------+

If you have multiple instances, you will have multiple public IPv4 and IPv6 addresses. You will need to track which addresses host which websites or other services.

Adding IP addresses to your domain in the DreamHost panel

  1. Navigate to the (Panel > 'Domains' > 'Manage Domains') page.
  2. You now must set your domain to 'DNS Only'. The steps are different depending on if your site is already hosted:
    • If your domain is on this page and already hosted, set it to 'DNS Only'.
    • If your domain is not listed on this page, click the 'Add Hosting to a Domain / Sub-Domain' button near the top left of the page. Scroll down to the 'DNS Only' hosting section towards the bottom, and enter your domain. Then click the 'Host DNS only!' button.
  3. Back on the 'Manage Domains' page, click the 'DNS' link directly under your domain name.
  4. In the "Add a custom DNS record to YOURDOMAIN:" section, enter the A record for the domain or subdomain you wish to host (this is also the entry used to automatically generate a PTR record for the IP address). This example shows how to add a subdomain called "cloud.example.com":
    • Name — The name of the subdomain you want to use with this cloud IP address.
    • Type — Select "A" since you're going to add an IPv4 A record.
    • Value — This is the public IPv4 address for your DreamCompute instance.
  5. Once you've entered all of that information, click "Add Record Now!".
  6. Repeat the last step as many times as needed to add additional A records for domains you wish to host on your instance.

Waiting for DNS propagation

After the DNS entries are saved, the DNS must propagate which can take several hours. The default TTL (time-to-live) for DreamHost name servers is 4 hours, so any change to your DNS records should be updated nearly everywhere around the world in that time. If you will be making frequent changes to your DNS, you can contact DreamHost support to have your TTL changed to 5 minutes instead.

Did this article answer your questions?

Article last updated .