Skip to content

Instantly share code, notes, and snippets.

@lyoshenka
Last active December 25, 2015 05:39
Show Gist options
  • Save lyoshenka/6926302 to your computer and use it in GitHub Desktop.
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
  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment