![](https://www.ninton.co.jp/wordpress/wp-content/themes/cocoon-master/images/man.png)
zenn.devにアクセスしても何も表示されないんだけど
![](https://www.ninton.co.jp/wordpress/wp-content/themes/cocoon-master/images/man.png)
iPhoneのsafariでは表示できたんだけど、
macOSではChromeでもFireFoxでも表示できないんだよね
![](https://www.ninton.co.jp/wordpress/wp-content/themes/cocoon-master/images/woman.png)
ということはWiFiの問題ではないわね
![](https://www.ninton.co.jp/wordpress/wp-content/themes/cocoon-master/images/woman.png)
zenn.devのIPアドレスは、35.190.77.180だから、
ping 35.190.77.180 してみるとどうかしら?
![](https://www.ninton.co.jp/wordpress/wp-content/themes/cocoon-master/images/man.png)
返ってきましたよん
$ ping 35.190.77.180
PING 35.190.77.180 (35.190.77.180) 56(84) bytes of data.
64 bytes from 35.190.77.180: icmp_seq=1 ttl=113 time=10.2 ms
64 bytes from 35.190.77.180: icmp_seq=2 ttl=113 time=10.5 ms
Code language: Bash (bash)
![](https://www.ninton.co.jp/wordpress/wp-content/themes/cocoon-master/images/woman.png)
それじゃ、ping zenn.dev はどう?
![](https://www.ninton.co.jp/wordpress/wp-content/themes/cocoon-master/images/man.png)
何か返ってきたけど...
$ ping zenn.dev
PING zenn.dev (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.069 ms
Code language: Bash (bash)
![](https://www.ninton.co.jp/wordpress/wp-content/themes/cocoon-master/images/woman.png)
あらら、localhostが返ってきてるわね
![](https://www.ninton.co.jp/wordpress/wp-content/themes/cocoon-master/images/woman.png)
zenn.devを名前解決したら、127.0.0.1になってしまってるのね
![](https://www.ninton.co.jp/wordpress/wp-content/themes/cocoon-master/images/man.png)
どうして〜?
![](https://www.ninton.co.jp/wordpress/wp-content/themes/cocoon-master/images/woman.png)
/etc/hosts を見てみて
![](https://www.ninton.co.jp/wordpress/wp-content/themes/cocoon-master/images/man.png)
cat してみたけど、zenn.dev と 127.0.0.1 の設定はしていないよ
![](https://www.ninton.co.jp/wordpress/wp-content/themes/cocoon-master/images/woman.png)
/privates/etc/hosts は /etc/hosts と同じ内容みたいね
![](https://www.ninton.co.jp/wordpress/wp-content/themes/cocoon-master/images/man.png)
.dev 127.0.0.1 で検索してみたら、わかったよ!
![](https://www.ninton.co.jp/wordpress/wp-content/themes/cocoon-master/images/man.png)
$ scutil --dns
を実行して、resolver #8
が表示されたら、
domain : dev nameserver[0] : 127.0.0.1$ rm -f /etc/resolver/dev
するといいって
![](https://www.ninton.co.jp/wordpress/wp-content/themes/cocoon-master/images/man.png)
Powっていう開発サーバをインストールすると、こうなるって、コメントがあるけど。
インストールした覚えはないけど、解決してよかった。
![](https://cdn.sstatic.net/Sites/superuser/Img/apple-touch-icon.png?v=0ad5b7a83e49)
`.dev` TLD resolves to 127.0.0.1
My Mac (Mojave 10.14) is unable to access any website with a .dev domain name, such as get.dev. I tried running $ ping g...
![](https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a)
Why all *.dev domains target to my localhost?
When you type *.dev domains, for example juas.dev it points to localhost, someone know why ? (My hosts are not modified,...