- Install
dnsmasq
- Add these lines to
/etc/dnsmasq.conf
listen-address=127.0.0.1
address=/localhost/127.0.0.1
- Add to
/etc/dhcp3/dhclient.conf
prepend domain-name-servers 127.0.0.1;
sudo service dnsmasq restart
Last active
December 25, 2015 05:39
-
-
Save lyoshenka/6926302 to your computer and use it in GitHub Desktop.
Localhost DNS. All traffic for *.localhost will be sent to 127.0.0.1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment