我使用主机名basic.localmachine.io
进行本地开发,它指向本地主机。出于某种原因,basic.localmachine.io
我的机器中有一个 CNAME 设置为
basic.wpengine.com
。我不知道这是怎么发生的,我想删除它。
挖掘 basic.localmachine.io 的输出
; <<>> DiG 9.8.3-P1 <<>> basic.localmachine.io
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 36219
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;basic.localmachine.io. IN A
;; ANSWER SECTION:
basic.localmachine.io. 0 IN CNAME basic.wpengine.com.
basic.wpengine.com. 300 IN A 50.116.58.222
;; Query time: 403 msec
;; SERVER: xx.xxx.xxx.xx#xx(xx.xxx.xxx.xx)
;; WHEN: Tue Sep 6 13:18:34 2016
;; MSG SIZE rcvd: 78
挖掘 localmachine.io 的输出
; <<>> DiG 9.8.3-P1 <<>> localmachine.io
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 34838
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;localmachine.io. IN A
;; ANSWER SECTION:
localmachine.io. 3600 IN A 198.74.57.83
;; Query time: 759 msec
;; SERVER: xx.xxx.xxx.xx#xx(xx.xxx.xxx.xxx)
;; WHEN: Tue Sep 6 14:18:07 2016
;; MSG SIZE rcvd: 42
/etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost localmachine localmachine.io basic.localmachine.com basic.localmachine.io advanced.localmachine.io basic.localmachine.io sentry.localmachine.io slanger.localmachine.io
255.255.255.255 broadcasthost
::1 localhost
我正在使用 Mac OS X El Capitan (10.11.3)