If I send a request to a local domain such as mydomain.test
in Postman, it works just fine. Pinging the domain or contacting using CURL from the console gets a response as well.
curl -X GET 'https://mydomain.test'
Safari likewise works loading the custom local domain pages just fine.
If I try to access the domain in the latest Chrome or Brave browsers by going to https://mydomain.test
then I get This site can’t be reached DNS_PROBE_FINISHED_NXDOMAIN
.
I tried going to chrome://net-internals/#dns
and clearing the cache, but this doesn't fix DNS resolution for .test domains. I get this error when I run the Lookup
on that page after clearing cache:
An error occurred while resolving "mydomain.test" (net::ERR_NAME_NOT_RESOLVED).
I'm using DnsMasq to manage my local domains through Laravel Valet.
Why aren't Chrome and Brave able to access these local domains but I can access them fine in anything else?
Use secure DNS
in Chrome, then the.test
domains load. After that, I found I can turn it back on and it still loads suggesting the test domains are now in Chrome's DNS cache. If you add an answer, I'll mark it as correct.