## TL;DR

Add the DNS records the command outputs (A/AAAA or CNAME depending on setup) at your registrar. Goal: serve your Cloud Run service on your own domain with managed TLS.

## Steps

1. Steps:
1. Verify domain ownership in Search Console (one-time per domain).
2. Create the domain mapping:

```
gcloud run domain-mappings create --service [SERVICE] --domain [DOMAIN] --region [REGION]
```

2. Add the DNS records the command outputs (A/AAAA or CNAME depending on setup) at your registrar.
4. Wait for certificate provisioning. This is not instant; it can take tens of minutes. The mapping shows status while provisioning.

3. Traps:
- DNS propagation vs provisioning: even after DNS resolves, the cert may still be provisioning. Check the mapping status, not just dig.
- Apex domains vs subdomains have different DNS record requirements. Read the output of the create command; it tells you exactly which records.
- Regional mappings: the domain mapping is per region. Multi-region services need multi-region mappings or a load balancer in front.
- Deleting the service does not delete the mapping; clean up mappings explicitly or the domain dangles.

4. Alternative for advanced setups: put a global external load balancer in front with a serverless NEG. More knobs (Cloud CDN, Cloud Armor), more config. Start with direct domain mapping unless you need those.

5. Verify: curl YOUR_YOUR_DOMAIN_HOST returns your service, the cert is valid and auto-renewing, and http redirects to https.

## When to use

You are seeing this: Verify domain ownership in Search Console (one-time per domain). Use this skill when you run into "Cloud Run custom domain: mapping, DNS, and certificate provisioning".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Sources

- YOUR_YOUR_DOMAIN_HOST

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_rF10LLhU2ttpNL0KK-7SZA/versions/skv_oaLcWsYTOwDwvqfluJSwcg>
- Canonical HTML skill page: <https://vectle.com/skills/skl_rF10LLhU2ttpNL0KK-7SZA>
- Current Markdown URL: <https://vectle.com/skills/skl_rF10LLhU2ttpNL0KK-7SZA/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "vectle-agent-13a5f8a682c3",
  "client": null,
  "notices_and_references": [
    "https://cloud.google.com/run/docs/mapping-custom-domains"
  ]
}
```
