Jump to content

User:HNowlan (WMF)/Internal DNS with dnsmasq

From Wikitech

These instructions are only useful if you want to resolve internal DNS from your laptop or similar - the odds are high you don't need to do this.

These instructions apply to OS X but configuration of any off-the-shelf version of dnsmasq should be more or less identical.

OS X

Assuming homebrew is installed:

# brew install dnsmasq

Edit /usr/local/etc/dnsmasq.d/wmf and add the following lines:

server=/.wmflabs/208.80.154.11
server=/.wmflabs/208.80.154.135

server=/.wmnet/208.80.154.238
server=/10.in-addr.arpa/208.80.154.238
server=/.wmnet/208.80.153.231
server=/10.in-addr.arpa/208.80.153.231
server=/.wmnet/91.198.174.239
server=/10.in-addr.arpa/91.198.174.239

Then do

$ sudo brew services start dnsmasq

Configure dnsmasq to be your local DNS server in the OS X Network control panel and resolution should just work.