Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Failed to Open .test Files on macOS: DNS Address Not Found Despite Dnsmasq Connection #1118

Closed
dikeshraj opened this issue Oct 27, 2024 · 20 comments
Labels

Comments

@dikeshraj
Copy link

Platform

macOS

Operating system version

macOS 15 Sequoia 15.0.1

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.11.1 build 34

PHP Version

No response

Bug description

In macOS, we tried three different versions as suggested in the GitHub issue solutions, but the .test file does not open. In the menu bar, Dnsmasq shows as green, but when attempting to open, we receive the following message:

This site can’t be reached.
project.test’s DNS address could not be found. Diagnosing the problem.
DNS_PROBE_POSSIBLE."

Steps to reproduce

No response

Relevant log output

No response

@issuelabeler issuelabeler bot added the macOS label Oct 27, 2024
@mpociot
Copy link
Member

mpociot commented Oct 27, 2024

Can you ping any .test site in the terminal? Like ping foo.test?
Do you see any logs next to DNSMasq?

@dikeshraj
Copy link
Author

When I run ping foo.test in the terminal, I get:

ping: cannot resolve foo.test: Unknown host

Also, I don’t see any logs in DNSMasq.

@mpociot
Copy link
Member

mpociot commented Oct 27, 2024

Alright, does the following file exist?
/etc/resolver/herd

You can get the content via:

less /etc/resolver/herd

@dikeshraj
Copy link
Author

No, got No such file or directory.

@mpociot
Copy link
Member

mpociot commented Oct 27, 2024

Oh sorry, told you the wrong filename. Should be /etc/resolver/test

Also check if any dnsmasq services are potentially running already: sudo ps aux | grep dnsmasq

@dikeshraj
Copy link
Author

When I ran less /etc/resolver/test, I saw the output:

nameserver 127.0.0.1
nameserver 127.0.0.1

Next, I checked if any dnsmasq services were potentially running by using the command:

sudo ps aux | grep dnsmasq

nobody 7211 0.0 0.0 410761984 768 ?? S 3:53PM 0:00.03 /Applications/Herd.app/Contents/Resources/dnsmasq-arm64 --keep-in-foreground --conf-file=/Users/dikesh/Library/Application Support/Herd/config/dnsmasq/dnsmasq.conf
dikesh 9183 0.0 0.0 410734816 1552 s002 S+ 4:33PM 0:00.00 grep dnsmasq

@dikeshraj
Copy link
Author

Do I need to take any further action on my side, or should I wait for another version release to resolve the issue?

@mpociot
Copy link
Member

mpociot commented Oct 27, 2024

This looks all good to me 🤔
Does the config file exist as well? /Users/dikesh/Library/Application Support/Herd/config/dnsmasq/dnsmasq.conf?

Do you have any special network settings? Like using a VPN?

You could try editing the /etc/resolver/test file and remove one "nameserver ..." line, as it should only be in there once, but I don't think that's the problem.
If you edit the file, try stopping/restarting all Herd services to see if that fixed the issue.

@dikeshraj
Copy link
Author

When run nano /Users/dikesh/Library/Application Support/Herd/config/dnsmasq/dnsmasq.conf

I saw the output:

address=/.test/127.0.0.1
listen-address=127.0.0.1

I don't use any network settings, and I have tried three versions of Herd and read all the bug solutions on GitHub, but I still cannot resolve the issue. What should I do next?

@mpociot
Copy link
Member

mpociot commented Oct 27, 2024

Did you try removing the duplicate nameserver settings?

@dikeshraj
Copy link
Author

Yes, sir, but it still doesn't resolve. I always get the error:

This site can’t be reached
project.test refused to connect.

@Karkianup
Copy link

Sometimes, Herd’s internal settings can get misconfigured. Go to:
/Users/yourusername/Library/Application Support/Herd

Inspect Herd’s configuration files, specifically those related to ports and .test domain resolution

@dikeshraj
Copy link
Author

@mpociot sir,I updated to the new version of Herd, but these issues were not resolved.

This site can’t be reached
project.test refused to connect.
Try:

Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED

@hh-0
Copy link

hh-0 commented Oct 31, 2024

I'm facing the same issue. Herd status shows Nginx, Dnsmasq, and FPM-8.3 as green. But "brew services list" shows none of them are running

@sschlein
Copy link
Member

@hh-0 That's because Herd does not use Homebrew 🙂

@hh-0
Copy link

hh-0 commented Nov 1, 2024

I found my issue. I was dumb. I'm using Edge and it's using a different DNS service provider in the Settings. Switching it to "Use current service provider" fixed the issue.

@MalinStalAtWork
Copy link

dnsmasq/dnsmasq.conf

hello! I have the same problem. i dident have this dnsmasq/dnsmasq.conf my cofig file says 82 and 83?? how to fix this?

@sschlein
Copy link
Member

@MalinStalAtWork @dikeshraj Do you still wait for solutions or have you either given up or found the solution? It's very very likely simething in your own DNS settings, a VPN, company proxy, etc and not directly related to Herd.

@sschlein sschlein added needs more information Further information is requested Stale labels Nov 27, 2024
@dikeshraj
Copy link
Author

This issue is fixed in my case. Please uninstall Herd, then go to the Library folder, and navigate to the Cache folder. Inside the Cache folder, you will find a Herd folder. Delete this folder, then reinstall Herd. The issue should be resolved. If it is not fixed, let me know, and I will help you further.

@github-actions github-actions bot removed needs more information Further information is requested Stale labels Nov 28, 2024
@vinkla
Copy link

vinkla commented Dec 9, 2024

For future readers: I've had this issue as well. It was resolved by disabling my VPN and restarting my preferred VPN service, Mullvad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants