Cloudflare& Heroku(DNS):未找到A,AAAA或CNAME记录

时间:2016-05-13 22:44:42

标签: ruby-on-rails ssl heroku dns cloudflare

我尝试将Cloudflare提供的免费SSL服务应用于我的Heroku应用程序。

虽然我在4天前注册了我的域名,但它没有用。

当我尝试使用Chrome访问我的域(example.com和www.example.com)时,会显示This site can’t be reached example.com’s server DNS address could not be found.

检查Cloudflare网站时会显示以下消息。

An A, AAAA or CNAME record was not found for the www subdomain. The www.example.com subdomain will not resolve.
An A, AAAA or CNAME record was not found pointing to the root domain. The example.com domain will not resolve.
An MX record was not found for your root domain. An MX record is required for mail to reach @example.com addresses.

在使用Cloudflare之前,我可以访问我的域www.example.com。 如何在SSL中使用我的域名?

我在Cloudflare中的设置摘要如下;

Security Level: Medium
SSL: Full

我获取了我的域名并在主页上设置如下,我获得了我的域名。

sub domain: www
type: CNAME
content: floating-fortress-999999.herokuapp.com

name server1: foo.ns.cloudflare.com
name server2: bar.ns.cloudflare.com

当我尝试dig命令时,会显示以下内容。

$ dig example.com

; <<>> DiG 9.9.5-3ubuntu0.7-Ubuntu <<>> example.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 301
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;example.com.                   IN      A

;; AUTHORITY SECTION:
example.com.            9999    IN      SOA     foo.ns.cloudflare.com. dns.cloudflare.com. 2021450999 10000 0000 999900 9900

;; Query time: 53 msec
;; SERVER: 999.99.9.9#53(999.99.9.9)
;; WHEN: Fri May 13 21:11:54 UTC 2016
;; MSG SIZE  rcvd: 101

当我尝试使用dig进行ns命令时,以下内容已被删除。

$ dig example.com ns

; <<>> DiG 9.9.5-3ubuntu0.7-Ubuntu <<>> example.com ns
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9999
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;example.com.                   IN      NS

;; ANSWER SECTION:
example.com.            99999   IN      NS      bar.ns.cloudflare.com.
example.com.            99999   IN      NS      foo.ns.cloudflare.com.

;; Query time: 173 msec
;; SERVER: 999.99.9.9#53(999.99.9.9)
;; WHEN: Fri May 13 21:12:53 UTC 2016
;; MSG SIZE  rcvd: 96

如果你给我任何建议,我将不胜感激。

0 个答案:

没有答案