Skip to content

Instantly share code, notes, and snippets.

@xeoncross
Created August 9, 2018 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xeoncross/45c93e179c39005e6bc50174120db674 to your computer and use it in GitHub Desktop.
Save xeoncross/45c93e179c39005e6bc50174120db674 to your computer and use it in GitHub Desktop.
Started to install dnsmasq, then realized it's already installed

DNSMasq

Ubuntu 12.04LTS and above by default runs their own instance of Dnsmasq via the NetworkManager service.

Don't do this

Install dnsmasq to cache DNS queries

sudo apt-get install dnsmasq

echo 'listen-address=127.0.0.1' >> /etc/dnsmasq.d/listen.conf

echo 'prepend domain-name-servers 127.0.0.1;' >> /etc/dhcp/dhclient.conf

service dnsmasq restart

Test with nslookup debian.org localhost

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment