/usr/share/zentyal/stubs/dhcp/dhcpd.conf.mas is in zentyal-dhcp 2.3.8+quantal1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | <%doc>
This stub writes the DHCP server configuration file
Parameters:
ifaces - Hash
real_ifaces - Hash containing the interface name as key and an
array ref containing the virtual interface names as value
thinClientOption - Boolean indicating whether the thin client
options have been used or not
dnsone - String the default primary DNS server
dnstwo - String the default secondary DNS server
dynamicDNSEnabled - Boolean indicating whether the dynamic DNS feature is on or not
keysFile - String with the file path to shared secret keys to update DNS server
pidFile - String the path to the file which stores the daemon PID
</%doc>
<%args>
%ifaces
%real_ifaces
$thinClientOption => 0
$dnsone => ""
$dnstwo => ""
$dynamicDNSEnabled => 0
$keysFile => ""
$pidFile
</%args>
# DHCP server is authoritative for all networks
authoritative;
# extra options
# RFC3442 routes
option rfc3442-classless-static-routes code 121 = array of integer 8;
# MS routes
option ms-classless-static-routes code 249 = array of integer 8;
pid-file-name "<% $pidFile %>";
% if ( $dynamicDNSEnabled ) {
ddns-update-style interim;
ddns-updates on;
update-static-leases on;
% } else {
ddns-update-style none;
% }
% if(length($dnsone) != 0) {
option domain-name-servers <% $dnsone %>\
% if(length($dnstwo) != 0) {
, <% $dnstwo %>;
% }else{
;
% }
% }
% if($thinClientOption) {
allow booting;
allow bootp;
% }
default-lease-time 1800;
max-lease-time 7200;
% if ($keysFile) {
include "<% $keysFile %>";
% }
<%perl>
foreach my $iface (keys(%real_ifaces)) {
# Write configuration if there are any range or fixed addresses
my @ifacesToCheck = @{$real_ifaces{$iface}};
push(@ifacesToCheck, $iface);
my $nIfaceToWrite = grep { @{$ifaces{$_}->{ranges}} > 0 or values(%{$ifaces{$_}->{fixed}}) > 0 } @ifacesToCheck;
if ( $nIfaceToWrite > 0) {
</%perl>
<& dhcp/shared-network.mas, iface => $iface, ifaces => \%ifaces, vifaces => $real_ifaces{$iface} &>
% }
% }
|