Skip to content

Instantly share code, notes, and snippets.

@obfusk obfusk/README.md
Last active Dec 17, 2015

Embed
What would you like to do?
dnsmasq for internal network

Install on dev server

$ aptitude install dnsmasq

Wildcards

$ cat >> /etc/dnsmasq.d/dev  # choose any name
address=/dev.example.com/192.168.1.2
^D

Invididual hosts

$ cat >> /etc/hosts  # overrides foo.dev.example.com wildcard
192.168.1.3 foo foo.dev.example.com
^D

Network configuration

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

Notes

This configuration was tested on ubuntu 12.04; YMMV; 12.04 has resolvconf installed; resolv.conf has 127.0.0.1 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.