source: trunk/puppet/modules/puppet-dnsmasq/templates/my.dnsmasq.conf.erb @ 513

Last change on this file since 513 was 513, checked in by sebas, 14 years ago

alineacion + config tftp + debug logy pxe

File size: 2.3 KB
Line 
1#
2# dnsmasq configuration
3#
4
5<% if dhcp_range != 'absent' -%>
6# This to enable the integrated DHCP server, you need
7# to supply the range of addresses available for lease and optionally
8# a lease time. If you have more than one network, you will need to
9# repeat this for each network on which you want to supply DHCP
10# service.
11dhcp-range=<%= dhcp_range %>
12<% end -%>
13
14<% if has_variable?("dhcp_authoritative") -%>
15# Set the DHCP server to authoritative mode. In this mode it will barge in
16# and take over the lease for any client which broadcasts on the network,
17# whether it has a record of the lease or not. This avoids long timeouts
18# when a machine wakes up on a new network.
19dhcp-authoritative
20<% end -%>
21
22<% if dhcp_gw != 'absent' -%>
23# Override the default route supplied by dnsmasq, which assumes the
24# router is the same machine as the one running dnsmasq.
25dhcp-option=3,<%= dhcp_gw %>
26<% end -%>
27
28<% if dhcp_nameservers != 'absent' -%>
29server=<%= dhcp_nameservers %>
30<% end -%>
31
32<% if has_variable?("read_ethers") -%>
33read-ethers
34<% end -%>
35
36#
37# dns configuration
38#
39
40# Never forward plain names (without a dot or domain part)
41domain-needed
42# Never forward addresses in the non-routed address spaces.
43bogus-priv
44
45<% if domain != 'absent' -%>
46# Set this (and domain: see below) if you want to have a domain
47# automatically added to simple names in a hosts-file.
48expand-hosts
49# Set the domain for dnsmasq. this is optional, but if it is set, it
50# does the following things.
51# 1) Allows DHCP hosts to have fully qualified domain names, as long
52#     as the domain part matches this setting.
53# 2) Sets the "domain" DHCP option thereby potentially setting the
54#    domain of all systems configured by DHCP
55# 3) Provides the domain part for "expand-hosts"
56domain=<%= domain %>
57<% end -%>
58
59<% if dhcp_boot != 'absent' -%>
60# The file sent to the tftp client, followed by the
61# tftp servername and ip
62dhcp-boot=<%= dhcp_boot %>
63<% end -%>
64
65<% if tftp_root != 'absent' -%>
66# Set the relative root directory for files availble via TFTP.
67tftp-root=<%= tftp_root %>
68<% end -%>
69
70<% if log_queries != 'absent' -%>
71# For debugging purposes, log each DNS query as it passes through
72# dnsmasq.
73log-queries
74<% end -%>
75
76<% if log_dhcp != 'absent' -%>
77# Log lots of extra information about DHCP transactions.
78log-dhcp
79<% end -%>
Note: See TracBrowser for help on using the repository browser.