---
title: "Netlify custom domain: DNS records, 75.2.60.5, and the API"
description: "Point a custom domain at Netlify: a CNAME to your .netlify.app subdomain, or for an apex domain an ALIAS to apex-loadbalancer.netlify.com or an A record to 75.2.60.5. SSL, site ID, and the API."
---

To add a custom domain to a Netlify site by hand, open **Domain management > Production domains**, add the domain (a second one becomes a domain alias), then create the DNS record Netlify shows under **Pending DNS verification** at your DNS provider. Netlify provisions a Let's Encrypt certificate once DNS points to it. To do the same from code, this adapter adds each customer hostname as a domain alias through the Netlify API and returns the record to show your customer.

These are the records Netlify asks for at an external DNS provider ([external DNS](https://docs.netlify.com/manage/domains/configure-domains/configure-external-dns/), checked 2026-11-16):

| Hostname                                        | Record                                | Value                                                                                        |
| ----------------------------------------------- | ------------------------------------- | -------------------------------------------------------------------------------------------- |
| `www` or any subdomain, like `app.customer.com` | `CNAME`                               | Your site's Netlify subdomain, like `brave-curie-12345.netlify.app`                          |
| Apex domain, like `customer.com`                | `ALIAS`, `ANAME` or flattened `CNAME` | `apex-loadbalancer.netlify.com`                                                              |
| Apex domain, if your DNS host has none of those | `A`                                   | `75.2.60.5` (Netlify's load balancer IP)                                                     |
| Subdomain on a High-Performance Edge site       | `CNAME`                               | The dedicated subdomain in your High-Performance Edge onboarding PDF                         |
| Apex domain on a High-Performance Edge site     | `ALIAS`-style or `A`                  | The High-Performance Edge load balancer in the domain's **Pending DNS verification** details |

Netlify recommends the ALIAS-style record over the `A` record because it's more resilient, and a subdomain over the apex as the primary domain on external DNS, since an apex resolves to the load balancer rather than through Netlify's CDN routing. DNS changes can take up to a day to propagate. The adapter always returns the standard values, so for High-Performance Edge sites give customers the dedicated values instead.

## Scope and credentials

The adapter manages `domain_aliases` on one Netlify site. It never replaces the site's primary `custom_domain`. Set `NETLIFY_ACCESS_TOKEN` and `NETLIFY_SITE_ID`; use a token that can read and update only the intended site where possible.

```ts title="domains.ts"
import { createDomainClient } from "@opencoredev/domain-sdk";
import { netlify } from "@opencoredev/domain-sdk/netlify";

export const domains = createDomainClient({
  provider: netlify({
    accessToken: process.env.NETLIFY_ACCESS_TOKEN!,
    siteId: process.env.NETLIFY_SITE_ID!,
  }),
});

const domain = await domains.add("app.customer.com");
```

## DNS and certificates

Subdomains return a CNAME pointing to the site's `.netlify.app` hostname. Apex domains return an ALIAS to `apex-loadbalancer.netlify.com`; when the customer's DNS provider cannot create ALIAS, ANAME, or flattened-CNAME records, use an A record to `75.2.60.5` instead. [Apex domains: A records, ALIAS, and CNAME flattening](/blog/apex-domain) explains which DNS hosts support which record.

Netlify does not expose independent DNS-verification state for each alias. The adapter treats an alias covered by the site's issued TLS certificate as verified and active. Until then, it remains `pending_dns`; if it stays there, see [Troubleshoot custom domain SSL certificates](/docs/guides/troubleshoot-certificates). Netlify manages certificate issuance, so the adapter does not call the certificate provisioning endpoint.

## Mutation and alias limits

Netlify updates aliases as one array. Each add or remove reads the current site, preserves unrelated aliases and the primary domain, then writes the updated alias list. Serialize domain mutations for the same site to avoid lost updates from concurrent read-modify-write requests.

Netlify recommends no more than 50 aliases per site. The adapter does not impose a lower limit than the API, but you should use multiple sites if your product regularly exceeds that recommendation.

Official references: [Netlify API](https://open-api.netlify.com/), [domain aliases](https://docs.netlify.com/manage/domains/configure-domains/add-a-domain-alias/), and [external DNS](https://docs.netlify.com/manage/domains/configure-domains/configure-external-dns/).

## Common questions

### What is Netlify's load balancer IP address?

`75.2.60.5`. Point an apex domain's `A` record there only when your DNS provider can't create `ALIAS`, `ANAME` or flattened `CNAME` records; otherwise point one of those at `apex-loadbalancer.netlify.com`. Sites on Netlify's High-Performance Edge use a different load balancer, shown in the domain's **Pending DNS verification** details.

### Where do I find NETLIFY_SITE_ID?

In the Netlify UI, open **Project configuration > General > Project details > Project information** and copy **Project ID** (labeled Site ID before Netlify renamed sites to projects). It's the same value as the API's `site_id` and the CLI's `NETLIFY_SITE_ID`. Create `NETLIFY_ACCESS_TOKEN` as a personal access token under **Applications > Personal access tokens** in your Netlify user settings.

### Why isn't Netlify provisioning an SSL certificate for my custom domain?

Netlify can only issue the certificate after the domain's DNS records point to Netlify and the old records' TTLs have expired. If the domain runs through a proxy such as Cloudflare's orange-cloud mode, switch the record to DNS only: Netlify has to terminate TLS itself. If the certificate covers one name but not another, select **Renew certificate** under **Domain management > HTTPS**. A `CAA` record, if you have one, must allow `letsencrypt.org`. See [Netlify's troubleshooting guide](https://docs.netlify.com/manage/domains/troubleshooting-tips/) and [Troubleshoot custom domain SSL certificates](/docs/guides/troubleshoot-certificates).

### Does Netlify add www automatically for an apex domain?

In the Netlify UI, yes: adding `customer.com` or `www.customer.com` adds both, so both need records pointing to Netlify. The adapter adds only the hostname you pass to `add()`, so call it for each name your customer wants to serve.

### How many custom domains can a Netlify site have?

Netlify recommends no more than 50 domain aliases per site. Its certificate provider can also rate-limit a site with more than 5 aliases that are subdomains of the same domain; for that case Netlify suggests a wildcard certificate through Netlify DNS or a support request before you add the aliases. The adapter doesn't support wildcard hostnames.

Read next: [Store domain state](/docs/guides/store-domain-state).
