Reputation: 7385
Ok, it has been less than 24 hrs but more than 10, and I find it odd that I am still getting a status of Needs setup in Firebase just trying to redirect to a custom domain, bought with Namecheap. I don't know what Im doing wrong but I still get the "insecure connection" error trying to access my site.
Here are the records specified in Firebase to be added to my Namecheap records:
Namecheap is in accordance:
I used @ for the same host as specified by Namecheap - is something wrong? How long should this take if not?
Upvotes: 41
Views: 26081
Reputation: 11
In Namecheap, replace the host value provided by Firebase in the instructions/examples with @
when entering it into Namecheap
Upvotes: 0
Reputation: 51
2024 Update
I've configured a lot of site DNS over the years, and this one was the most annoying ever. I think I tried every published answer on the internet to solve it - waited some period of time - no love. Finally, I deleted the custom domain config in firebase, re-added it... it spun for a long time - and then came back with green checks right away. :|
Also - you'll see lots of answers which include extra DNS entries that Firebase used to give and no longer do, don't be confused by that. As of 2024 - it suggested 1 single A Record and one single TXT record.
So - full process that ended up working for me:
Go into Namecheap advanced DNS and delete everything... even the TXT record hidden down at the bottom of the page.
Add these settings (replacing with your own values) - and if they don't work after 24 hours... maybe delete your stupid custom domain in firebase and re-add it (without changing namecheap config!):
Upvotes: 5
Reputation: 479
My issue was that I simply accidentally put "*" instead of "@" as the host. Otherwise, my DNS settings look just like Fakeer's, also on namecheap. Worked like a charm.
Upvotes: 0
Reputation: 1044
First delete all existing default records. Then you only need 5 records. No CNAME records are required.
Subdomains are just as simple. Just replace www
with whatever you want (e.g. admin).
Add the custom subdomain under Firebase hosting and the SSL certificate will be automatically provisioned if you wait about 5-10mins.
PS : Take a moment to appreciate that - with Firebase you will never have to to buy, sign and install SSL certs again. Even multi-domain, wildcard SSL certs are automatically taken care of.
Upvotes: 13
Reputation: 3017
Yes, as stated on firebase docs
https://firebase.google.com/docs/hosting/custom-domain#dns-records-namecheap
Upvotes: 3
Reputation: 502
Expanding on Devin's answer which helped immensely... Here are the steps that worked for me.
Upvotes: 21
Reputation: 593
You need to change the CNAME
record to your firebase app URL:
example-app.firebaseapp.com.
(Make sure to include the dot at the end) and you should also change the TTL
on both A records
to Automatic.
Then, delete the URL Redirect
record.
That should fix your problem. I'd wait up to an hour after these changes for the changes to take effect.
This is what my namecheap DNS setup looks like
I added the www
A records because I have a redirect in my Firebase console, but you don't need those.
Upvotes: 57