Skip to content

Instantly share code, notes, and snippets.

@tomquas
Forked from semistrict/dnsmasq.conf
Created February 27, 2018 16:16
Show Gist options
  • Select an option

  • Save tomquas/3cdeb75b2f28bd0709f9e82d38d650b1 to your computer and use it in GitHub Desktop.

Select an option

Save tomquas/3cdeb75b2f28bd0709f9e82d38d650b1 to your computer and use it in GitHub Desktop.
dnsmasq.conf for VirtualBox on OSX
# Change this line if you want dns to get its upstream servers from
# somewhere other that /etc/resolv.conf
resolv-file=/etc/resolv.upstream.conf
# 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=vboxnet0
# Uncomment this to enable the integrated DHCP server, you need
# to supply the range of addresses available for lease and optionally
# a lease time. If you have more than one network, you will need to
# repeat this for each network on which you want to supply DHCP
# service.
dhcp-range=192.168.56.102,192.168.56.200,12h
dhcp-leasefile=/var/lib/dnsmasq.leases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment