Last active
April 6, 2024 13:11
-
-
Save asminog/6c1de064a7039af990a7fa5e43d1094b to your computer and use it in GitHub Desktop.
Add wildcard *.dev domain to listen localhost
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use test or box, dev is valid domain.
ping domain.box - for test