DEV Community

Cover image for How to add custom domain in Firebase Hosting
April Smith
April Smith

Posted on

4 1

How to add custom domain in Firebase Hosting

If you have an existing domain and wanted to point your subdomain to your web app that you deployed in Firebase then here's how:

  1. In your Firebase Hosting Dashboard, Click the 'Add custom domain' button.
  2. Enter the domain
  3. Verify the ownership by copying the TXT code
  4. In your Domain, go to Manage DNS Records or similar and add a new TXT type with your subdomain and paste the TXT code
  5. Back to your Firebase page, it should let you verify the ownership and now it will give you the IP address.
  6. Then back to your DNS Records page, add a new A type, with your subdomain and paste the IP address.
  7. Then Go Live.
  8. Wait for a few minutes for the propagation, it depends on your DNS but usually it will only take 15-30 minutes.
  9. You can check once its live in your Firebase dashboard if the subdomain says 'Connected'.

That's it! Let me know if you have questions

Alt Text

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay