简体   繁体   中英

Google Domain - DNS Configuration for Firebase Hosting - Connect Domain

I am trying to connect my firebase app in to a domain -where the domain purchesd from google.Need help to to do the setup for DNS configuration. my app is working fine in firebase app. firebase app is - https://.firebaseapp.com/

My Firebase setup

在此处输入图片说明

And

在此处输入图片说明

Google Domain ( https://domains.google.com/ ) - DNS Configuration

1.Name servers Default is "Use the Google Domains name servers" is it OK?, if not what to setup

在此处输入图片说明

2.Registered hosts

If anything, need to add- please let me know.

在此处输入图片说明

3.Synthetic records

If anything, need to setup - please let me know.

在此处输入图片说明

4. Custom resource records

I am trying to add two records but getting error while trying to add second record - is "Record already in use" please find the screen shot

在此处输入图片说明

Update Now I have added both the IP address, but still it is not working.

在此处输入图片说明

Click the little + icon to the right of the field where you're entering the IP address. That will open a second textbox that you can use for the second value.

I noticed in your screenshot

That you have @-------------.com (where I assume ----------- is your URL). You don't want that. You want simply @ there (and www if you want to redirect www.--------.com as well). @ means "this domain name", which in your case is ----------

Hope this helps!

This was really helpful but there was one missing thing I was still confused on. On the firebase docs page for this https://firebase.google.com/docs/hosting/custom-domain if you scroll down the page it give you an example of how to setup a google domain. It asks that you put in the following information.

在此处输入图片说明

I could not find any "verification value provided in firebase console" for a TXT record. I ended up just putting the DNS A record inputs and that worked for domainName.com and www.domainName.com

Addition to Editing and (+) adding records together. You might want to also add 2 records for @ and and 2 for www.

I had same problem, every setup was right but site doesn't work. Finally I removed the domain from Firebase and add it again without changing DNS setup, then problem resolved.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM