Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from aspiers/dnsmasq
Dnsmasq support
- Loading branch information
Showing
2 changed files
with
98 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Never forward plain names (without a dot or domain part) | ||
domain-needed | ||
# Never forward addresses in the non-routed address spaces. | ||
bogus-priv | ||
|
||
# By default, dnsmasq will send queries to any of the upstream | ||
# servers it knows about and tries to favour servers to are known | ||
# to be up. Uncommenting this forces dnsmasq to try each query | ||
# with each server strictly in the order they appear in | ||
# /etc/resolv.conf | ||
#strict-order | ||
|
||
# If you don't want dnsmasq to read /etc/resolv.conf or any other | ||
# file, getting its servers from this file instead (see below), then | ||
# uncomment this. | ||
#no-resolv | ||
|
||
# If you don't want dnsmasq to poll /etc/resolv.conf or other resolv | ||
# files for changes and re-read them then uncomment this. | ||
#no-poll | ||
|
||
# Add other name servers here, with domain specs if they are for | ||
# non-public domains. | ||
#server=/localnet/192.168.0.1 | ||
|
||
# Example of routing PTR queries to nameservers: this will send all | ||
# address->name queries for 192.168.3/24 to nameserver 10.1.2.3 | ||
#server=/3.168.192.in-addr.arpa/10.1.2.3 | ||
|
||
# You can control how dnsmasq talks to a server: this forces | ||
# queries to 10.1.2.3 to be routed via eth1 | ||
# server=10.1.2.3@eth1 | ||
|
||
# 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 | ||
|
||
interface=eth0 | ||
|
||
# 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=@@DOMAIN@@,@@SUBNET@@.0/24,local | ||
|
||
dhcp-range=@@SUBNET@@.@@POOL_START@@,@@SUBNET@@.@@POOL_END@@,255.255.255.0,12h | ||
# Supply parameters for specified hosts using DHCP. There are lots | ||
# of valid alternatives, so we will give examples of each. Note that | ||
# IP addresses DO NOT have to be in the range given above, they just | ||
# need to be on the same network. The order of the parameters in these | ||
# do not matter, it's permissible to give name, address and MAC in any | ||
# order. | ||
|
||
# Always give the host with Ethernet address 11:22:33:44:55:66 | ||
# the name fred and IP address 192.168.0.60 and lease time 45 minutes | ||
#dhcp-host=11:22:33:44:55:66,fred,192.168.0.60,45m | ||
|
||
# Run an executable when a DHCP lease is created or destroyed. | ||
# The arguments sent to the script are "add" or "del", | ||
# then the MAC address, the IP address and finally the hostname | ||
# if there is one. | ||
dhcp-script=/bin/echo | ||
|
||
log-queries | ||
log-dhcp |