Skip to content

Instantly share code, notes, and snippets.

@sylvaincombes
Last active September 28, 2020 14:53
Show Gist options
  • Save sylvaincombes/70b53766dbad05ec3da8ea1212f19f51 to your computer and use it in GitHub Desktop.
Save sylvaincombes/70b53766dbad05ec3da8ea1212f19f51 to your computer and use it in GitHub Desktop.
redirecting all sites with domain .localhost to localhost - dev tip
nameserver 127.0.0.1
listen-address=127.0.0.1
address=/.localhost/127.0.0.1
sudo apt-get install dnsmasq;
sudo nano /etc/dnsmasq.conf;
# Add the content showed below ( dnsmasq.conf )
sudo apt-get install resolvconf;
sudo nano /etc/resolvconf/resolv.conf.d/base;
# Add the content showed below ( base )
# now all whatever.localhost should resole to your localhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment