Add a subdomain record
Subdomains are a type of DNS record that adds a prefix to your domain. They can be used to create a separate section of website that has a unique web address. For example, if you have your main website set up on mycoolnewbusiness.com and you want to add a separate section for your online store, you can create a subdomain such as store.mycoolnewbusiness.com that your customers can access directly. Subdomains are commonly set up to connect to a domain name by creating a CNAME record, or to connect to an IP address by adding an A record.
- Sign in to your GoDaddy Domain Portfolio. (Need help logging in? Find your username or password.)
- Select an individual domain to access the Domain Settings page.
- Select DNS to view your DNS records.
- Select Add New Record.
- What are you connecting your subdomain to? Select the tab that applies.
- Select CNAME from the Type menu.
- Enter the details for your new CNAME subdomain.
- Name: The hostname or prefix of the record, without the domain name, such as blog or shop. The Name must follow these guidelines:
- Periods (.) are allowed but not as the first or last character
- Consecutive periods (…) are not allowed
- Cannot exceed 63 characters
- Cannot be the @ symbol.
- Not already in use by an existing A record, TXT record or MX record.
Note: The most common CNAME is www, with the @ symbol entered for the Value field. This will make www.mycoolnewbusiness.com use the same DNS as the root domain, mycoolnewbusiness.com. - Value: The URL you are setting as the destination for the host. Type @ to point directly to your root domain name.
- TTL (Time to Live): The amount of time the server should cache information before refreshing. The default setting is 1 hour.
- Name: The hostname or prefix of the record, without the domain name, such as blog or shop. The Name must follow these guidelines:
- Select A from the Type menu.
- Enter the details for your new A record subdomain.
- Name: The hostname or prefix of the record, without the domain name such as blog or shop.
- Value: The IP address the record will point to. This is commonly the IP address for a hosting account.
- Select Add another value to add more IP addresses to this A record.
- TTL (Time to Live): The amount of time the server should cache information before refreshing. The default setting is 1 hour.
- (Optional) Select Add More Records to add multiple DNS records at the same time. If you change your mind, select Delete to remove any records that haven't been saved yet.
- Select Save to add your new record. If you added multiple records at the same time, select Save All Records.
- If your domain has Domain Protection, you'll need to verify your identity. If you've had 2-step verification (2SV) turned on for at least 24 hours, enter the code we sent via SMS, or enter the code from your authenticator app. Otherwise, enter the one-time password we sent to your registrant email address.
Most DNS changes take effect within an hour but could take up to 48 hours to update globally.
Related steps
- Edit an existing domain name subdomain or IP address subdomain any time in your GoDaddy account.
- Keep your Domain Portfolio organized with folders.
- Quickly manage settings for your domains by using domain profiles.
More info
- Turn on auto-renew to continue your domain registration uninterrupted.
- Set up 2-step verification for the best security on your domains and account.