This feature is in
Netlify offers the option to handle DNS management for you. This enables advanced subdomain automation and deployment features, and ensures that your site uses our CDN for the root domain as well as subdomains like www.
- Verify the domain. The domain can be managed through an external registrar or purchased with Netlify during the verification step.
- Create a DNS zone for your domain.
- Add DNS records to your zone.
- Point your domain at the name servers assigned to your DNS zone, if the domain is purchased from an external registrar.
You can add domains to Netlify DNS that you own through external domain registrars, or buy a available domains with Netlify. Go to your or your team’s Domains page and select Add or buy domain. Enter the domain you wish to buy or add and click Verify.
If the domain is unowned, you are presented with the price and ability to buy the domain and have it added to the current account or team’s Domains list fully configured to use Netlify DNS. The payment method on file for the account or team will be used, or you can add a payment method if unset. Click Yes, buy this domain to purchase the domain.
If the entered domain is registered through an external registrar (or already owned by someone else), you will be asked to confirm that you are the owner of the domain. If you are the owner, click Yes, add domain to create a Netlify DNS zone for the domain.
Adding DNS records
Netlify DNS supports the following types of records:
- A: Address record, which is used to map host names to their IPv4 address.
- AAAA: IPv6 Address record, which is used to map host names to their IPv6 address.
- ALIAS: A pseudo-record that works like a CNAME but can be safely used at the Zone Apex because it always resolves to A (or AAAA) record(s).
- CAA: Certificate Authority (CA) Authorization, which is used to specify which CAs are allowed to create certificates for a domain.
- CNAME: Canonical name record, which is used to specify alias names.
- MX: Mail exchange record, which is used in routing requests to mail servers.
- NS: Name server record, which delegates a DNS zone to an authoritative server.
- SPF: Sender Policy Framework record, a deprecated record type formerly used in e-mail validation systems (use a TXT record instead).
- SRV: Service locator record, which is used by some voice over IP, instant messaging protocols, and other applications.
- TXT: Text record, which can contain arbitrary text and can also be used to define machine-readable data, such as security or abuse prevention information.
To add a new record, go to the DNS records panel on your Domain’s DNS zone page, and select New record.
Choose the type of record to create from the dropdown menu and fill in the remaining options. The fields you need to fill out will depend on the type of record you select.
Select Save to create the record and make the changes live.
Remember, it may take up to a few hours for record changes to propagate.
Note that you can host records for other services (e.g. your mail provider, your backend API, etc) with us as long as you host at least one website with us whose hostnames is within the domain.
Directing DNS traffic to Netlify
The final step to making your DNS records live is to update your domain registrar with the nameservers that will be authoritative for your domain. Note, if you purchased the domain through Netlify, you can skip this step as it is already configured to use Netlify DNS.
The process for changing your domain’s nameservers varies from registrar to registrar. Check your domain registrar’s documentation for updating nameservers. For your convenience, we’ve gathered links to instructions for popular registrars Hover and GoDaddy.
To start directing your DNS traffic to Netlify:
Navigate to your Domain’s DNS zone page on Netlify, and make note of the four nameservers listed in the Nameservers panel.
Log in to the account you have with your domain registrar and find their instructions for updating nameservers.
Replace the nameservers with the nameservers for your Netlify DNS zone.
It may take up to a day for the changes to propagate to the public internet.
Troubleshooting DNS configuration
dig command line tool is the best tool for quickly diagnosing and understanding DNS responses. It is built into Linux and Mac, but can also be installed on Windows.
NS1 –the DNS provider backing Netlify DNS– has a great series of articles on using DIG to test and troubleshoot your DNS configuration.
You can transfer domains and DNS zones between your personal and Netlify team accounts at any time.
To transfer a domain from Netlify to a different registrar, you must wait 60 days after the purchase to initiate the transfer as per ICANN regulations.
Notice something is incorrect or outdated?
First off, great eye! We appreciate your discovery and want to ensure it gets addressed immediately. Please let us know here.