Search code examples
nginxmacos-high-sierradnsmasqlaravel-valet

Valet Stopped Working after macOS High Sierra Upgrade from macOS Sierra


Upgrading the macOS from Sierra to High Sierra breaks working Valet installation. Ping works just fine, it is just *.dev on browser gives error that unable to connect, site cannot be connected.

I have tried usual troubleshooting steps like Uninstalling Valet and installing again but same issue.

I read somewhere it was related DNSMasq so i have unlinked and uninstalled it many times via brew with no success.

Anyone has faced this issue and any suggested fixes?


Solution

  • Update: I got it fixed finally. It was related to DNSmasq as originally suspected, however it did not matter how many times I removed and re installed dnsmasq via Brew.

    So here is what worked for me:

    1. Removed dnsmasq brew uninstall dnsmasq had it done many times but this time, did next step which helped.

    2. Remove dnsmasq's config files and any dnsmasq directory in /usr/local/etc (this step is what fixed my issue)

    3. Now reinstall Valet, valet install it will install missing dnsmasq itself and new config of dnsmasq will work just fine as it worked in my case.

    Hope it works for you also.

    PS. Also I removed whole Valet and reinstalled Valet after removing old valet directory settings in home directory i.e. removed ~/.valet and then installed Valet again.