DNS resolve Problems with Guzzle/curl, and php on MacOS for local requests
I just ran into a Problem where I wanted to request another local Laravel App (guzzle-test.test) from an App with Guzzle.
cURL error 6: Could not resolve: guzzle-test.test (DNS server returned answer with no data) (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
TL;DR
Run the following:
brew uninstall curl-openssl --ignore-dependencies brew services restart php valet restart
curl Version mismatch
The Problem is caused by curl installed in multiple versions. You can find further details in this Stackoverflow Post:
https://stackoverflow.com/questions/54688451/curl-laravel-valet-dnsmasq-not-working/54908305#54908305
Leave a Reply