我希望这是一个正确的问题。我目前正在尝试设置我的本地开发环境。我一直在关注本指南(每次都适用于我)来执行设置:guide here。但是,在尝试打开我的Sites
文件夹中的本地文件时,我收到了ProjectName.dev’s server DNS address could not be found.
但是,当我scutil --dns
时,我看到了:
resolver #8
domain : dev
nameserver[0] : 127.0.0.1
flags : Request A records, Request AAAA records
reach : Reachable, Local Address, Directly Reachable Address
当我使用ping
ping -c 1 projectName.dev
时。我收到以下内容:
PING projectName.dev (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.048 ms
--- projectName.dev ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.048/0.048/0.048/0.000 ms
使用nslookup
nslookup projectName.dev
时:
Server: 2001:558:feed::2
Address: 2001:558:feed::2#53
Non-authoritative answer:
Name: projectName.dev
Address: 127.0.53.53