我无法通过 pangeawerks.com 来解决问题,但 www.pangeawerks.com 很好用
我 ping 了该域名,结果如下:
karmacomposer@PANGEAVERSE:~$ ping pangeawerks.com
ping: pangeawerks.com: Temporary failure in name resolution
karmacomposer@PANGEAVERSE:~$ ping www.pangeawerks.com
PING www.pangeawerks.com(::1 (::1)) 56 data bytes
64 bytes from ::1 (::1): icmp_seq=1 ttl=64 time=0.039 ms
64 bytes from ::1 (::1): icmp_seq=2 ttl=64 time=0.048 ms
64 bytes from ::1 (::1): icmp_seq=3 ttl=64 time=0.053 ms
64 bytes from ::1 (::1): icmp_seq=4 ttl=64 time=0.047 ms
64 bytes from ::1 (::1): icmp_seq=5 ttl=64 time=0.052 ms
--- www.pangeawerks.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4094ms
rtt min/avg/max/mdev = 0.039/0.047/0.053/0.010 ms
我知道这与我的 DNS 服务器有关(它是我们办公室自己的服务器,所以不是主机)。
如果有人能帮助我完成这项工作,那我会非常高兴。
谢谢。
麦克风
答案1
问题出在 DNS 解析上。
dig pangeawerks.com
; <<>> DiG 9.11.3-RedHat-9.11.3-12.fc28 <<>> pangeawerks.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 39391
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;pangeawerks.com. IN A
;; Query time: 462 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Wed Jul 18 21:02:31 CEST 2018
;; MSG SIZE rcvd: 44
和
dig www.pangeawerks.com
; <<>> DiG 9.11.3-RedHat-9.11.3-12.fc28 <<>> www.pangeawerks.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36304
;; flags: qr rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;www.pangeawerks.com. IN A
;; ANSWER SECTION:
www.pangeawerks.com. 604424 IN A 72.31.51.26
;; Query time: 7 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Wed Jul 18 21:02:49 CEST 2018
;; MSG SIZE rcvd: 53
创建休闲记录。第一个A
指向您的记录ip
pangeawerks.com A 72.31.51.26
之后CNAME
记录连接 www
使用主机名
www.pangeawerks.com CNAME pangeawerks.com
此记录必须在权威 DNS 服务器上制作。
以下是 dig pangeawerks.com 的当前结果:
; <<>> DiG 9.11.3-1ubuntu1.1-Ubuntu <<>> pangeawerks.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 57836
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 79cc3057e00d2854be8b8e965b4f92ce402e52c17af6f46e (good)
;; QUESTION SECTION:
;pangeawerks.com. IN A
;; Query time: 405 msec
;; SERVER: 72.31.51.26#53(72.31.51.26)
;; WHEN: Wed Jul 18 15:19:42 EDT 2018
;; MSG SIZE rcvd: 72
以下是我的 pangeawerks.com.db 区域文件的内容:
; BIND data file for local loopback interface
;
$TTL 604800
@ IN SOA pangeawerks.com. PANGEAVERSE.pangeawerks.com. (
33 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS localhost.
@ IN A 72.31.51.26
@ IN AAAA ::1
;Name Server Information
@ IN NS PANGEAVERSE.pangeawerks.com.
;IP address of Your Domain Name Server(DNS)
pangeawerks.com A 73.31.51.26
;Mail Server MX (Mail exchanger) Record
pangeawerks.com. IN MX 10 mail.pangeawerks.com.
;A Record for Host names
www IN A 72.31.51.26
mail IN A 72.31.51.30
;CNAME Record
ftp IN CNAME www.pangeawerks.com.
www.pangeawerks.com CNAME pangeawerks.com.
以下是反向查找文件 db.72:
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA pangeawerks.com. PANGEAVERSE.pangeawerks.com. (
6 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS pangeawerks.com.
26.51.31 IN PTR pangeawerks.com.
;Your Name Server Info
@ IN NS PANGEAVERSE.pangeawerks.com.
PANGEAVERSE IN A 72.31.51.26
;Reverse Lookup for your DNS Server
26 IN PTR PANGEAVERSE.pangeawerks.com.
;PTR Record IP address to HostName
26 IN PTR www.pangeawerks.com.
30 IN PTR mail.pangeawerks.com.
PANGEAVERSE 是服务器的主机名 - FQDN 是 PANGEAVERSE.pangeawerks.com
这是 /etc/hosts 文件的内容(许多错误的内容被注释掉 - 我不想删除它们以防我再次需要它们或做错了什么):
#127.0.0.1 localhost localhost.pangeawerks.com PANGEAVERSE
#127.0.0.1 localhost PANGEAVERSE
72.31.51.26 PANGEAVERSE.pangeawerks.com PANGEAVERSE
# The following lines are desirable for IPv6 capable hosts
#::1 localhost ip6-localhost ip6-loopback
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters
#72.31.51.26 pangeawerks.com
#72.31.51.26 www.pangeawerks.com
请建议对这些文件进行正确的格式化,因为它有点像其他模板的大杂烩。我肯定我做错了什么。
谢谢。