# How to Add a Subdomain to Your Domain Adding a domain you own to your DigitalOcean account lets you manage the domain’s DNS records with the control panel and API. Domains you manage on DigitalOcean integrate with DigitalOcean Load Balancers and Spaces to streamline automatic SSL certificate management. A subdomain is an additional hostname of a domain. Subdomains can point traffic to a specific IP address or other parts of a website. For example, a company could use the domain `example.com` to direct traffic to their website’s home page and use the hostname `support.example.com` to send traffic specifically to their support portal that resides on another service or server. If you are setting up a new hostname that points to a different web directory on the same Droplet as your current domain name, follow this document’s instructions to set up your DNS record and then review these community tutorials for configuring your web server: - [How To Set Up Apache Virtual Hosts on Ubuntu 20.04](https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-20-04) - [How To Set Up Apache Virtual Hosts on CentOS 7](https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-centos-7) ## Create a New Hostname with an A Record To add the hostname from the control panel, click **Networking** in the main menu. In the **Domains** tab, click the domain name you want to add the new hostname to. Click **Create a record**, then under **Record Type** select the type of record you want to add. Enter the new hostname into the **Hostname** field. The characters entered into the **Hostname** field append to your domain name and a preview of the hostname’s full address appears below the **Hostname** field. If your hostname contains non-ASCII characters (such as accents or other Unicode characters), you must [convert it to Punycode](https://www.punycoder.com/) before adding it. Enter the applicable data into the **Will direct to** field. Depending on the type of record, this can be an IP address, a Droplet, a mail server address, or other DNS record data. Set the **TTL** (time to live) value to your preferred value in seconds. We recommend a value between `3600` (1 hour) and `86400` (24 hours) for most records because this allows for caching while still refreshing records regularly. Click **Create Record**. This creates the record at the new hostname. You can verify the record was added by looking up the new hostname with DigitalOcean’s [DNS Lookup tool](https://www.digitalocean.com/community/tools/dns). Enter your new hostname into the search field, then click **Search**. The DNS Lookup tool returns the DNS records that reside at the new hostname. It may take up to 48 hours for the new hostname to propagate across the internet. You can also use BIND’s `dig` tool to look up the records for the new hostname from the command line: ```shell dig @ns1.digitalocean.com ` ``` `dig` returns DNS record information about your hostname. The newly created record is displayed in the **ANSWER SECTION**. ```shell ;; ANSWER SECTION: sub.example.com. 297 IN A 203.0.113.83 ```