Skip to content

Instantly share code, notes, and snippets.

@matglas
Created January 31, 2014 13:22
Show Gist options
  • Save matglas/8732019 to your computer and use it in GitHub Desktop.
Save matglas/8732019 to your computer and use it in GitHub Desktop.
# Install dnsmasq
sudo apt-get install dnsmasq
# Add lines to a configuration file in /etc/dnsmasq.d
# Don't use .local as address. That won't work.
nano dnsservers
> server=8.8.8.8
> server=8.8.4.4
nano domains
> address=/.private/127.0.0.1
# Restart the dnsmasq service.
sudo service dnsmasq restart
# Uncomment prepend domain-name-servers 127.0.0.1;
sudo nano /etc/dhcp/dhclient.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment