The "site can't be reached" issue with a "DNS_PROBE_FINISHED_NXDOMAIN" error typically indicates a DNS resolution problem. Since other projects are working fine, the issue is likely specific to the new project setup. Here are some steps you can take to troubleshoot and resolve the issue:
-
Check Herd Configuration: Ensure that Herd is properly configured to recognize the new project. Sometimes, Herd might not automatically detect new projects, especially if there are configuration issues.
-
Verify Hosts File: Make sure that the hosts file on your system has an entry for
ea-dep-test.test. This is usually managed by Herd, but you can manually check it:- On macOS and Linux, the hosts file is located at
/etc/hosts. - On Windows, it's located at
C:\Windows\System32\drivers\etc\hosts.
You should see an entry like:
127.0.0.1 ea-dep-test.test - On macOS and Linux, the hosts file is located at
-
Restart Herd: Sometimes, simply restarting Herd can resolve DNS issues. Stop and start Herd again to refresh its configuration.
-
Clear DNS Cache: Clear your DNS cache to ensure there are no stale entries:
- On macOS, run
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. - On Windows, run
ipconfig /flushdnsin the Command Prompt. - On Linux, the command can vary, but
sudo systemd-resolve --flush-cachesis common.
- On macOS, run
-
Check Project Directory: Ensure that the project directory
ea-dep-testis correctly set up and that the Laravel application is running without errors. You can try runningphp artisan serveto see if the application starts without issues. -
Check for Conflicts: Ensure there are no conflicts with other services or applications that might be using the same domain or port.
-
Review Herd Logs: Check Herd's logs for any error messages or warnings that might give more insight into the problem.
If none of these steps resolve the issue, consider creating a new Laravel project with a different name to see if the problem persists, which might help isolate the issue further.