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

Last change on this file since 557 was 557, checked in by sebas@…, 13 years ago

agregamos la funcionalidad para generar nombre a las maquinas basado en su mac address

File size: 2.5 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 dhcp_authoritative != 'absent' -%>
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' -%>
29# upstream nameserver
30server=<%= dhcp_nameservers %>
31<% end -%>
32
33<% if dhcp_script != 'absent' -%>
34# Run an executable when a DHCP lease is created or destroyed.
35# The arguments sent to the script are "add" or "del",
36# then the MAC address, the IP address and finally the hostname
37# if there is one.
38dhcp-script=<%= dhcp_script %>
39<% end -%>
40
41#
42# dns configuration
43#
44
45# Never forward plain names (without a dot or domain part)
46domain-needed
47# Never forward addresses in the non-routed address spaces.
48bogus-priv
49
50<% if domain != 'absent' -%>
51# Set this (and domain: see below) if you want to have a domain
52# automatically added to simple names in a hosts-file.
53expand-hosts
54# Set the domain for dnsmasq. this is optional, but if it is set, it
55# does the following things.
56# 1) Allows DHCP hosts to have fully qualified domain names, as long
57#     as the domain part matches this setting.
58# 2) Sets the "domain" DHCP option thereby potentially setting the
59#    domain of all systems configured by DHCP
60# 3) Provides the domain part for "expand-hosts"
61domain=<%= domain %>
62<% end -%>
63
64<% if dhcp_boot != 'absent' -%>
65# The file sent to the tftp client, followed by the
66# tftp servername and ip
67dhcp-boot=<%= dhcp_boot %>
68<% end -%>
69
70<% if tftp_root != 'absent' -%>
71# Set the relative root directory for files availble via TFTP.
72tftp-root=<%= tftp_root %>
73<% end -%>
74
75<% if log_queries != 'absent' -%>
76# For debugging purposes, log each DNS query as it passes through
77# dnsmasq.
78log-queries
79<% end -%>
80
81<% if log_dhcp != 'absent' -%>
82# Log lots of extra information about DHCP transactions.
83log-dhcp
84<% end -%>
Note: See TracBrowser for help on using the repository browser.