aboutsummaryrefslogtreecommitdiff
blob: fa3f25763fcd1655cfccbbabc72cc1821800aa90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# For the sake of non-duplication of documentation, please view the dnsmasq manpage for a description of these options.
# Public interface
except-interface=%%PUBETH

# We are the authoritative DHCP server for this network
dhcp-authoritative

# Set up the local-only domain
local=/%%LOCALDOMAINNAME/127.0.0.1
domain=%%LOCALDOMAINNAME
expand-hosts

# We need the following to retain dhcp served resolution info:
resolv-file=/etc/dnsmasq-resolv.conf

# Some netiquette:
domain-needed
bogus-priv

enable-tftp
tftp-root=%%TFTPROOT

# Send RFC-3397 DNS domain search DHCP option. WARNING: Your DHCP client
# probably doesn't support this...... (option 119)
dhcp-option=119,%%LOCALDOMAINNAME
# Domain DNS name
dhcp-option=15,%%LOCALDOMAINNAME

# set the master node as the NTP server
dhcp-option=option:ntp-server,0.0.0.0

### Node definitions, this could be in a separate file
# Turn on the DHCP server, pass out addresses from %%IPSTART to %%IPSTOP
# with subnet mask of %%SUBNET with a 12-hour lease
dhcp-range=nodes,%%IPSTART,%%IPSTOP,%%SUBNET,12h

# Override the default route supplied by dnsmasq, which assumes the
# router is the same machine as the one running dnsmasq.
dhcp-option=3,%%CLUSTER_ETH_IP

# This tells the clients the hostname and IP of the TFTP server
dhcp-boot=%%PXELINUX,%%HOSTNAME,%%CLUSTER_ETH_IP

# address and root path of NFS server
dhcp-option=17,%%CLUSTER_ETH_IP:%%NFSROOT

# The default is 150, which is quite low if one wants a cluster with more than 150 nodes.
dhcp-lease-max=%%NODECOUNT