[英]Firebase Hosting Custom Domain - site not “Go Live” after update DNS records by “CNAME records” method
My domain verification process is completed and i also update my domain's DNS records to point to Firebase using "CNAME records" method ( updated before approx 96 hours ) but my site was not "Go Live". 我的域验证过程已完成,我还使用“CNAME记录”方法更新了我的域名的DNS记录以指向Firebase( 在大约96小时之前更新 ),但我的网站不是“上线”。 In Firebase console Hosting menu that give me below message:
在Firebase控制台托管菜单中,它给出了以下消息:
Your site will go live when your domain registrar propagates your updated records.
当您的域名注册商传播您更新的记录时,您的网站将上线。
I have already deploy my site default index.html using "Firebase deploy" CLI command and it's already successfully uploaded on "mydomainname.firebaseapp.com" 我已经使用“Firebase部署”CLI命令部署了我的网站默认index.html,并且已经成功上传到“mydomainname.firebaseapp.com”
My Question: why my custom domain is not redirect to Firebase hosting? 我的问题:为什么我的自定义域名不会重定向到Firebase托管?
Note : I have set default GoDaddy DNS nameservers in my domain. 注意 :我在我的域中设置了默认的GoDaddy DNS名称服务器。
I had the same problem and here is how i resolved it : 我有同样的问题,这是我如何解决它:
I put three parameters in the DNS record : 我在DNS记录中放了三个参数:
and then i only add two nameservers ie: ns1 & ns2 out of the 4 default Nameservers provided by name.com 然后我只添加两个名称服务器,即:name.com提供的4个默认名称服务器中的ns1和ns2
and now my website is live on firebase. 现在我的网站在firebase上。
-extra info: -extra信息:
it was not going live when i was using the 4 default nameservers. 当我使用4个默认名称服务器时,它不会生效。 it was not working with only one CNAME or both CNAME, or only both A with IP
它不能只使用一个CNAME或两个CNAME,或者只使用两个A和IP
I even contacted support on name.com they answered it is essential to have NameServer. 我甚至联系了name.com上的支持他们回答说有必要使用NameServer。
I could never get the "recommended" CNAME record to work. 我永远无法获得“推荐”的CNAME记录。 I ended up just using the two IP's for the A record.
我最后只使用两个IP作为A记录。 It took about 5 minutes to propagate enough to get my site in a browser.
传播足够大约5分钟,以便在浏览器中获取我的网站。
If you're using GoDaddy 如果你正在使用GoDaddy
Just try changing your host name from 'customdomain.com' to '@' 只需尝试将主机名从“customdomain.com”更改为“@”
That worked for me 这对我有用
If you are customizing your url domian with Godaddy and Firebase, you need to do the following: 如果您使用Godaddy和Firebase自定义您的网址,则需要执行以下操作:
After this changes you need to wait a few hours. 在此更改后,您需要等待几个小时。 If you problem persists Firebase has an excellent support as @FrankvanPuffelen says above.
如果问题仍然存在,Firebase可以提供出色的支持,正如@FrankvanPuffelen上面所说的那样。 They solved my problems fastly.
他们快速解决了我的问题。
For me after adding those 3, that @Orkun Ozen and @SarkawtNoori mentioned: 在添加了3个之后,对我来说,@ Orkun Ozen和@SarkawtNoori提到:
I added a new domain to Firebase and called it www.mydomain.com including to mydomain.com and it worked perfectly.... (though I had to wait for it to be secure). 我向Firebase添加了一个新域名,并将其称为www.mydomain.com,包括mydomain.com,它运行良好....(尽管我必须等待它安全)。
I deleted the custom firebase hosting site and added it again, actually when I did that it automatically was set as "connected". 我删除了自定义firebase托管站点并再次添加它,实际上当我这样做时它自动被设置为“已连接”。 I didn't need to set up verification records or wait for provisioning.
我不需要设置验证记录或等待配置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.