# Cobbler generated configuration file for dnsmasq # $date # read-ethers log-queries log-facility=/var/log/dnsmasq.log addn-hosts = /var/lib/cobbler/cobbler_hosts conf-dir=/etc/dnsmasq.d domain=<%= @domain_name %> dhcp-lease-max=<%= @dhcp_lease_max %> <% if @domain_name != 'local' %> server=/<%= @domain_name %>/ <% end %> server=/<%= @dns_domain %>/ <%- @dns_upstream.split(',').each do |dns| -%> server=/<%= @dns_domain %>/<%= dns %> <%- end -%> resolv-file=/etc/dnsmasq.upstream interface=<%= @dhcp_interface %> # On systems which support it, dnsmasq binds the wildcard address, # even when it is listening on only some interfaces. It then discards # requests that it shouldn't reply to. This has the advantage of # working even when interfaces come and go and change address. If you # don't want dnsmasq to really bind only the interfaces it is listening on, # comment this option. bind-interfaces cache-size=1024 # This is one of the key options. dnsmasq tries to move out servername # and PXE filename from special fields into DHCP options. # Some old clients can't understand those DHCP options, so they # will not be able to boot via PXE without this option enabled. # For example gPXE will not work while iPXE works fine. dhcp-no-override # for many simultaneously DHCPDISCOVVER requests dnsmasq can offer # the same IP for two differnt MAC addresses. This option prevents it # by assigning IPs one by one instead of using hash algorithm. dhcp-sequential-ip dhcp-option=6,<%= @name_server %> $insert_cobbler_system_definitions