aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'overlay/sys-cluster/beowulf-head/files/dnsmasq-2.4-conf')
-rw-r--r--overlay/sys-cluster/beowulf-head/files/dnsmasq-2.4-conf49
1 files changed, 49 insertions, 0 deletions
diff --git a/overlay/sys-cluster/beowulf-head/files/dnsmasq-2.4-conf b/overlay/sys-cluster/beowulf-head/files/dnsmasq-2.4-conf
new file mode 100644
index 0000000..fa3f257
--- /dev/null
+++ b/overlay/sys-cluster/beowulf-head/files/dnsmasq-2.4-conf
@@ -0,0 +1,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
+