Railway stuck on "Waiting for DNS update": causes and fixes
Why a Railway custom domain stays on Waiting for DNS update, the two records Railway checks, and dig commands to find which one is wrong.
What the message means
A Railway custom domain shows "Waiting for DNS update" until Railway can see two records in public DNS: a CNAME that points the hostname at the target Railway gave you, and a TXT record that proves you own the domain. Almost every stuck domain is missing one of the two, has it under the wrong name, or has an old record in the way. Check both with the dig commands below before you remove and re-add anything.
Railway's documentation does not list this status text. It is the label people report in Railway's Central Station, where many threads carry it in the title. The rules behind it are documented, and they are what this page follows.
The two records Railway wants
When you add a custom domain under the service's Settings, in Public Networking, Railway shows a CNAME and a TXT record. Its docs are explicit that the domain will not verify with only the CNAME in place, and that a missing TXT record can produce a 404 even once the CNAME resolves. Copy both the name and the value exactly as the dashboard shows them.
For a domain added as www.example.com the pair has the shape below. The TXT value starts with railway-verify=. For the bare domain the names are @ and _railway-verify.
| Type | Name | Value | Purpose |
|---|---|---|---|
| CNAME | www | abc123.up.railway.app | Sends traffic to your service |
| TXT | _railway-verify.www | railway-verify=<token> | Proves you own the domain |
Check what the world sees
Run these from any terminal, with your own hostname. The first three should print one line each. An empty answer means the record is not published under that name.
# 1. The CNAME. Expect: abc123.up.railway.app.
dig +short CNAME www.example.com
# 2. The verification TXT. Expect: "railway-verify=..."
dig +short TXT _railway-verify.www.example.com
# 3. Which DNS provider is authoritative. Expect its nameservers.
dig +short NS example.com
# 4. Address lookups. dig follows the CNAME, so for a DNS-only record
# expect the Railway target first, then its addresses. Addresses
# with no target line above them (away from the apex) are leftovers.
dig +short A www.example.com
dig +short AAAA www.example.com
# 5. CAA records. Expect nothing, or a line that allows letsencrypt.org
dig +short CAA example.com
# Windows, without dig
nslookup -type=CNAME www.example.com
nslookup -type=TXT _railway-verify.www.example.comCauses, most common first
| What dig shows | Cause | Fix |
|---|---|---|
| TXT query is empty | The TXT record was never added, or sits under the wrong name | Add it with the exact name from Railway |
TXT value has no railway-verify= prefix | Only part of the value was pasted | Paste the whole value |
| TXT only answers at a doubled name | The DNS provider appended the domain to a name that already contained it | Enter only the part before your domain |
| CNAME shows another target | Typo, or a value from an earlier attempt | Copy the target from Railway again |
| CNAME is empty, A shows addresses only | Cloudflare proxy is on, or the name is the apex | Normal. Check the record in the Cloudflare dashboard instead |
| A or AAAA records next to the CNAME | Old parking or hosting records | Delete them |
| NS shows a provider you did not edit | Records were added at the wrong DNS host | Add them where the nameservers point |
CAA exists without letsencrypt.org | The certificate authority is blocked | Add 0 issue "letsencrypt.org" |
| Everything is correct | Propagation, or Railway's check has stalled | Wait, then see the last section |
The TXT record is missing or malformed
This is a cause Railway's moderators point at in those threads. In one, the answer was simply that the TXT record was malformed: the value did not start with railway-verify=.
The name goes wrong more quietly. Many DNS editors append your domain to whatever you type. If you paste _railway-verify.www.example.com into one that does, you may publish _railway-verify.www.example.com.example.com. Query that doubled name with dig +short TXT to confirm, then re-create the record with only _railway-verify.www in the name field.
Cloudflare proxy and SSL mode
With the orange cloud on, public lookups return Cloudflare's addresses and the CNAME is no longer visible. Railway's troubleshooting page says as much: with the proxy on, check your DNS in the Cloudflare dashboard, because lookup tools show Cloudflare IPs. Railway does support proxied domains and labels them "Cloudflare proxy detected".
If the domain will not verify while proxied, Railway's own suggestion is to turn the proxy off, wait for the green check mark in Railway, then turn it back on. If you keep the proxy on, set Cloudflare's SSL/TLS mode to Full. Railway's docs say Flexible usually ends in ERR_TOO_MANY_REDIRECTS, and that Full (Strict) will not work as intended and can fail with error 526. Error 525 usually means no certificate has been issued yet.
The verification TXT record is not affected by any of this. Cloudflare only proxies A, AAAA and CNAME records.
The bare domain and CNAME flattening
A plain CNAME is not allowed at the root of a zone, so the bare domain depends on your DNS provider supporting CNAME flattening or an ALIAS record. Railway lists Cloudflare, DNSimple, Namecheap and bunny.net as providers that do, and AWS Route 53, Azure DNS, Hostinger, GoDaddy, NameSilo, Hurricane Electric and Squarespace as providers that do not. Its suggested workaround is to move the domain's nameservers to Cloudflare.
On Cloudflare, a CNAME at @ is flattened automatically on every plan. That changes what you see: dig CNAME example.com returns nothing and dig A example.com returns addresses. This is expected and is not the fault. Only the TXT record at _railway-verify.example.com should be checked by name.
Leftover records and the wrong DNS host
A hostname cannot usefully carry both a CNAME and address records. Railway's SSL page tells you to make sure the hostname does not have both A and CNAME records. Registrars often leave parking A or AAAA records on @ and www, and those keep answering after you add the CNAME somewhere else.
Also check command 3. If you moved nameservers recently, the records you edited at the old provider are not the ones the world reads. The NS answer names the provider that counts.
CAA and DNSSEC
Railway issues Let's Encrypt certificates. If dig CAA prints nothing, CAA is not your problem. If it prints records, one of them must allow Let's Encrypt with 0 issue "letsencrypt.org". A broken DNSSEC chain blocks validation too. Railway suggests checking it at dnsviz.net and fixing or disabling DNSSEC at the registrar.
When the records are right and it still waits
- Confirm the service is deployed and running. Railway notes that a stopped service cannot answer the validation challenge.
- Give it time. Railway says DNS changes may take up to 72 hours to propagate worldwide, and that a certificate should be issued within an hour of DNS being correct.
- Check the plan limit. Railway's docs give Trial one custom domain and Hobby two per service, and count
example.comandwww.example.comas two. - If nothing has changed after a few hours, remove the domain in Railway, wait ten to fifteen minutes, add it again and update the records if the values changed. That is the step Railway's moderators give, and staff have confirmed cases where the verification workflow stalled before it picked up correct records.
- Do this once. Railway warns against repeatedly deleting and re-adding a domain: Let's Encrypt allows five duplicate certificates per domain per week.
- After 72 hours with verified DNS and no CAA or DNSSEC problem, open a thread in the Questions topic of Railway's Central Station.
Where Shipyard fits
Shipyard adds the bare domain and www to the Railway service, reads back the records Railway's API asks for, including the verification TXT, and writes them into Cloudflare DNS as DNS-only records. If a different CNAME or address record already sits on the name, it stops and tells you which one instead of changing a record it did not create. Then it waits for the certificate.
Sources
- Railway docs: Working with domainsdocs.railway.com
- Railway docs: Troubleshooting SSLdocs.railway.com
- Railway Central Station: Custom domain stuck on Waiting for DNS update - Cloudflarestation.railway.com
- Railway Central Station: Root domain stuck on Waiting for DNS updatestation.railway.com
- Cloudflare docs: Proxy statusdevelopers.cloudflare.com
- Cloudflare docs: Set up CNAME flatteningdevelopers.cloudflare.com
Launch in an hour, not a weekend
Shipyard connects your accounts once, then sets up the domain, hosting, database, email and payments for every new product.