Resolve .dev domain correctly
Everytime I tried to visit websites with a .dev
domain, I found the following error message:
1 | DNS_PROBE_FINISHED_NXDOMAIN |
However when I use dig
to figure out why I can’t resolve .dev
domain, everything goes well.
1 | dig pptr.dev |
So I guess it’s related to my local settings about DNS. The solution is here: remove /etc/resolver/dev
and done.
The reason why there was a etc/resolver/dev
file is I used to develop websites with a .dev
local domain for testing for years.
Now .dev
gTLD domain is owned by Google, you should use .test
, .local
for local development.