Domains
Learn how to configure domains for your Pangolin resources and understand the different domain types available
Domains allow you to access your Pangolin resources through custom URLs. Pangolin supports different domain types depending on your deployment model and requirements. You can also attach redirects to a domain hostname to forward matching requests to another URL.
In Pangolin Cloud, a domain is not required. You can use our provided domain
endings like .hostlocal.app or .tunneled.to for your resources on any of
the paid plans.
Domain Types
| Type | DNS Record | Coverage | Availability |
|---|---|---|---|
| Wildcard | A / AAAA | Base domain and all subdomains (e.g. example.com, app.example.com) | Self-Hosted |
| Domain Delegation | NS | Base domain and all subdomains, managed entirely by Pangolin | Cloud or Enterprise w/ DNS |
| Single Domain | CNAME | Only the exact hostname provided (no subdomains) | Cloud or Enterprise w/ DNS |
Wildcard (A record) domains are the most common setup for Self-Hosted, since you already control the server's DNS and just point it at your VPS IP.
Delegating a Domain to Pangolin Cloud
Domain delegation and single-domain (CNAME) setups exist because Pangolin Cloud and Enterprise clustered mode doesn't run on a server whose single IP you control - your traffic is routed and terminated on various nodes. For Pangolin to issue certificates and route traffic for your domain, it needs to be able to create and update DNS records on your behalf.
- Self-Hosted: You point A/AAAA records at your own VPS's IP address. DNS stays with your existing provider; Pangolin never needs access to it.
- Cloud: There's no single static IP that's "yours" to point at, and Pangolin needs to create records (for certificate validation, routing, and new resources) without you manually updating DNS every time. Delegation and CNAME setups solve this by giving Pangolin either full control over the zone (NS delegation) or a single record it can manage (CNAME).
Domain delegation is the more powerful option since new subdomains work automatically. It also lets you manage the entire DNS zone through Pangolin, including creating and updating records as needed.
Setting It Up
Self-Hosted (Wildcard / A Records)
Refer to the DNS & Networking Section.
Cloud & Enterprise (NS Delegation or CNAME)
Changing nameservers hands over the whole zone, not individual records. If you point the nameservers for your root domain (e.g. example.com) at Pangolin, Pangolin becomes authoritative for every record on that domain - including MX/email, TXT/SPF, and any other subdomains you weren't intending to move. Once delegated, you manage DNS for that zone through Pangolin, not your old provider. Recreate the records you need as custom DNS records before you switch.
Some registrars like Cloudflare included only let you delegate NS records at subdomains, and don't allow you to add NS records on the root zone at all or still include their nameservers on the root. In this case if you need to use NS delegation, delegate a subdomain of the domain or use CNAME records.
Add the domain in the Pangolin dashboard
From your organization's domain settings, add the domain and choose either Domain Delegation or Single Domain (CNAME). Pangolin will show you the exact records to configure.
Configure DNS at your registrar/provider
Change the nameservers for the domain (or subdomain) to Pangolin's, as shown in the dashboard:
Type: NS
Name: test.example.com
Value: ns1.pangolin-ns.net
ns2.pangolin-ns.net
ns3.pangolin-ns.netThis is done at your registrar or in your current DNS provider's nameserver settings, not as a normal DNS record.
Wait for verification
Pangolin checks for the records automatically. NS delegation can take longer to propagate than a CNAME since it changes how the entire zone (or subzone) resolves.
Custom DNS Records
Custom DNS records are available in Pangolin Cloud and self-hosted Enterprise Edition running in clustering mode with Pangolin's DNS server set up.
When you delegate a domain to Pangolin with NS records, Pangolin's nameservers answer every query for that domain. Custom DNS records let you serve your other records from Pangolin too, such as mail (MX), SPF and DMARC (TXT), verification records, and hostnames that point to servers outside Pangolin. This means you can delegate a whole domain without losing the records your old DNS provider was serving.
Custom DNS records can only be added to domains that use Domain Delegation (NS). They aren't available for wildcard or single-domain (CNAME) domains, or for shared domains provided by Pangolin.
Before You Delegate
Changing nameservers moves the whole zone at once. Any record you don't recreate in Pangolin stops resolving once the change propagates. To switch over without downtime:
Add the domain
Add the domain in Pangolin as Domain Delegation (NS). Don't change the nameservers at your registrar yet.
Copy your existing records
At your current DNS provider, list the records for the domain. Recreate the ones you still need in Pangolin under Records > Custom DNS Records on the domain. Pay special attention to MX, SPF, DKIM, and DMARC records so email keeps working.
You can add records before the domain is verified. Pangolin stores them and shows a notice that they aren't being served yet.
Change the nameservers
Point the domain's nameservers to Pangolin as shown in Setting It Up. Once the domain is verified, Pangolin starts serving your custom records.
Add a Record
Open the domain in your organization's Domains settings, go to Records, and select Add Record.

| Field | Description |
|---|---|
| Name | The name relative to the domain, such as mail or _dmarc. Use @ for the root of the domain, or * as the first label for a wildcard (for example, *.dev). You can also enter the full hostname. |
| Type | A, AAAA, CNAME, MX, NS, SRV, or TXT |
| Values | One value per line. A record can have up to 10 values, such as both nameservers of an NS record or several TXT values. |
| TTL | How long resolvers may cache the answer, from 60 to 86,400 seconds. Defaults to 300. |
| Priority | Required for MX and SRV records |
| Weight and Port | Required for SRV records |
| Enabled | Turn a record off to stop serving it without deleting it |
Changes may take a few minutes to propagate, and resolvers may keep serving cached answers until the TTL expires.
Record Types
| Type | Value | Notes |
|---|---|---|
| A | IPv4 address | |
| AAAA | IPv6 address | |
| CNAME | Hostname | Not allowed at the root (@). Only one value, and no other records can share the name. |
| MX | Mail server hostname | Requires a priority. Add a separate record for each priority. |
| TXT | Text, up to 1,024 printable ASCII characters | Surrounding quotes are removed, so you can paste values from a zone file. |
| SRV | Target hostname | Requires priority, weight, and port. Use a name like _sip._tcp. |
| NS | Nameserver hostname | Delegates a subdomain to other nameservers. See Delegating a Subdomain. |
Hostname values must be fully qualified, such as mail.example.net.
Delegating a Subdomain
Add NS records to hand a subdomain to another DNS provider, for example to let another team manage lab.example.com. Pangolin then refers every query at or below that name to the nameservers you set.
NSrecords can't be added at the root or on a wildcard name.- No other records can exist at or below a delegated subdomain, except
AandAAAAglue records for nameservers named inside it (for example,ns1.lab.example.com). - A subdomain can't be delegated if Pangolin resources, login pages, or redirects use names at or below it.
Limits and Reserved Names
- Each domain can have up to 100 custom records.
- Each name can have one record per type. To add more values, edit the existing record.
MXandSRVrecords can be split by priority, with up to 10 values across them. _acme-challengenames are managed by Pangolin for certificate issuance and can't be used.A,AAAA, andCNAMErecords can't be added to names used by Pangolin resources, login pages, or redirects. Pangolin answers for those names itself.- Names inside another domain added to Pangolin separately (for example,
sub.example.comwhen it's its own domain) belong to that domain and can't be used here.
Was this page helpful?