Skip to content

Instantly share code, notes, and snippets.

@obfusk obfusk/
Last active Dec 17, 2015

What would you like to do?
dnsmasq for internal network

Install on dev server

$ aptitude install dnsmasq


$ cat >> /etc/dnsmasq.d/dev  # choose any name

Invididual hosts

$ cat >> /etc/hosts  # overrides wildcard foo

Network configuration

The computers on the internal network will need to set their nameserver to the ip of the dev server.


This configuration was tested on ubuntu 12.04; YMMV; 12.04 has resolvconf installed; resolv.conf has as nameserver; see /var/run/dnsmasq/resolv.conf for the name servers dnsmasq uses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.