Skip to content

Instantly share code, notes, and snippets.

@leetrout
Created September 23, 2011 19:44
Show Gist options
  • Save leetrout/1238267 to your computer and use it in GitHub Desktop.
Save leetrout/1238267 to your computer and use it in GitHub Desktop.
dnsmasq simple config
Last login: Fri Sep 23 14:03:37 on ttys009
kdiroma7726mlb:~ ltrout$ more /usr/local/etc/dnsmasq.conf
# Add domains which you want to force to an IP address here.
# The example below send any host in double-click.net to a local
# web-server.
#address=/double-click.net/127.0.0.1
address=/localhost.mydomain.com/127.0.0.1
# and this sets the source (ie local) address used to talk to
# 10.1.2.3 to 192.168.1.1 port 55 (there must be a interface with that
# IP on the machine, obviously).
# server=10.1.2.3@192.168.1.1#55
# If you want dnsmasq to listen for DHCP and DNS requests only on
# specified interfaces (and the loopback) give the name of the
# interface (eg eth0) here.
# Repeat the line for more than one interface.
#interface=
interface=lo0
interface=en0
# Or you can specify which interface _not_ to listen on
#except-interface=
# Or which to listen on by address (remember to include 127.0.0.1 if
# you use this.)
#listen-address=
listen-address=127.0.0.1
# If you want dnsmasq to provide only DNS service on an interface,
# configure it as shown above, and then use the following line to
# disable DHCP and TFTP on it.
#no-dhcp-interface=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment