Skip to content

Instantly share code, notes, and snippets.

@tomquas
Forked from semistrict/dnsmasq.conf
Created February 27, 2018 16:16
Show Gist options
  • Save tomquas/3cdeb75b2f28bd0709f9e82d38d650b1 to your computer and use it in GitHub Desktop.
Save tomquas/3cdeb75b2f28bd0709f9e82d38d650b1 to your computer and use it in GitHub Desktop.

Revisions

  1. @semistrict semistrict revised this gist Mar 11, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion dnsmasq.conf
    Original file line number Diff line number Diff line change
    @@ -37,4 +37,4 @@ domain=vm

    # This must be the address of you host on the vboxnet0 network
    # find this in the VirtualBox host-only network preferences
    address=/vbox-host/192.168.56.1
    address=/vbox-host.vm/192.168.56.1
  2. @semistrict semistrict revised this gist Mar 11, 2013. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion dnsmasq.conf
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ dhcp-range=192.168.56.102,192.168.56.200,12h
    dhcp-leasefile=/var/lib/dnsmasq.leases

    # Assume anything in the .vm domain is local
    local=/.vm/
    local=/vm/

    # Set this (and domain: see below) if you want to have a domain
    # automatically added to simple names in a hosts-file.
    @@ -34,3 +34,7 @@ expand-hosts
    # domain of all systems configured by DHCP
    # 3) Provides the domain part for "expand-hosts"
    domain=vm

    # This must be the address of you host on the vboxnet0 network
    # find this in the VirtualBox host-only network preferences
    address=/vbox-host/192.168.56.1
  3. @semistrict semistrict revised this gist Mar 11, 2013. 1 changed file with 18 additions and 6 deletions.
    24 changes: 18 additions & 6 deletions dnsmasq.conf
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,9 @@
    # Your /etc/resolv.conf will point to dnsmasq, so make a copy
    # of this and set dnsmasq to use it instead:
    resolv-file=/etc/resolv.upstream.conf

    # Set this to the name of your VirtualBox host-only interface.
    # dnsmasq will listen for DHCP and DNS requests on this interface as
    # well as the loopback:
    interface=vboxnet0

    # This option will be forced anyway on OS X so set here to avoid warning:
    # This option will be forced anyway on OS X so set here to avoid a warning:
    bind-interfaces

    # Enable the integrated DHCP server, you need
    @@ -20,5 +16,21 @@ bind-interfaces
    dhcp-range=192.168.56.102,192.168.56.200,12h

    # The default directory does not exist on OSX and this cause an
    # error when enabling DHCP, set alternative location here:
    # error when enabling DHCP, set an alternative location here:
    dhcp-leasefile=/var/lib/dnsmasq.leases

    # Assume anything in the .vm domain is local
    local=/.vm/

    # Set this (and domain: see below) if you want to have a domain
    # automatically added to simple names in a hosts-file.
    expand-hosts

    # Set the domain for dnsmasq. this is optional, but if it is set, it
    # does the following things.
    # 1) Allows DHCP hosts to have fully qualified domain names, as long
    # as the domain part matches this setting.
    # 2) Sets the "domain" DHCP option thereby potentially setting the
    # domain of all systems configured by DHCP
    # 3) Provides the domain part for "expand-hosts"
    domain=vm
  4. @semistrict semistrict revised this gist Feb 9, 2013. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions dnsmasq.conf
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,9 @@ resolv-file=/etc/resolv.upstream.conf
    # well as the loopback:
    interface=vboxnet0

    # This option will be forced anyway on OS X so set here to avoid warning:
    bind-interfaces

    # 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
  5. @semistrict semistrict revised this gist Feb 9, 2013. 1 changed file with 10 additions and 7 deletions.
    17 changes: 10 additions & 7 deletions dnsmasq.conf
    Original file line number Diff line number Diff line change
    @@ -1,18 +1,21 @@
    # Change this line if you want dns to get its upstream servers from
    # somewhere other that /etc/resolv.conf
    # Your /etc/resolv.conf will point to dnsmasq, so make a copy
    # of this and set dnsmasq to use it instead:
    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.
    # Set this to the name of your VirtualBox host-only interface.
    # dnsmasq will listen for DHCP and DNS requests on this interface as
    # well as the loopback:
    interface=vboxnet0

    # Uncomment this to enable the integrated DHCP server, you need
    # 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.
    # Select a range from the address and netmask shown in VirtualBox's
    # host-only network configuration dialog:
    dhcp-range=192.168.56.102,192.168.56.200,12h

    # The default directory does not exist on OSX and this cause an
    # error when enabling DHCP, set alternative location here:
    dhcp-leasefile=/var/lib/dnsmasq.leases
  6. @semistrict semistrict created this gist Feb 9, 2013.
    18 changes: 18 additions & 0 deletions dnsmasq.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    # 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