Last active
September 28, 2020 14:53
-
-
Save sylvaincombes/70b53766dbad05ec3da8ea1212f19f51 to your computer and use it in GitHub Desktop.
redirecting all sites with domain .localhost to localhost - dev tip
This file contains 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
nameserver 127.0.0.1 |
This file contains 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
listen-address=127.0.0.1 | |
address=/.localhost/127.0.0.1 |
This file contains 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
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