DNS - Firebase connect to Namecheap still says Nee

2019-03-27 08:17发布

问题:

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?

回答1:

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.



回答2:

Expanding on Devin's answer which helped immensely... Here are the steps that worked for me.

  1. Go to the Firebase console and click 'connect domain', and add your domain
  2. Remove all DNS records in Namecheap
  3. Add the TXT record that Google/Firebase suggests
  4. Go back to the Firebase console and click 'connect domain'
  5. Verify the domain ownership
  6. Add in the A records that Google/Firebase suggests
  7. Add a CNAME record pointing to the default Firebase URL, and any A records that Google/Firebase suggests for a site redirect, if you have one.