Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save asminog/6c1de064a7039af990a7fa5e43d1094b to your computer and use it in GitHub Desktop.
Save asminog/6c1de064a7039af990a7fa5e43d1094b to your computer and use it in GitHub Desktop.
Add wildcard *.dev domain to listen localhost
# Use dnsmasq for local development to resolve *.box to localhost MacOS
```
brew install dnsmasq
echo 'address=/.box/127.0.0.1' >> /usr/local/etc/dnsmasq.conf
echo 'listen-address=127.0.0.1' >> /usr/local/etc/dnsmasq.conf
sudo brew services start dnsmasq
mkdir -p /etc/resolver
sudo echo 'nameserver 127.0.0.1' >> /etc/resolver/box
```
@asminog
Copy link
Author

asminog commented May 26, 2023

Use test or box, dev is valid domain.
ping domain.box - for test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment