50 lines
1.4 KiB
Text
50 lines
1.4 KiB
Text
config dnsmasq
|
|
option domainneeded '1'
|
|
option boguspriv '1'
|
|
option filterwin2k '0'
|
|
option localise_queries '1'
|
|
option rebind_protection '1'
|
|
option rebind_localhost '1'
|
|
option local '/actcur.com/'
|
|
option domain 'actcur.com'
|
|
option expandhosts '1'
|
|
option nonegcache '0'
|
|
option authoritative '1'
|
|
option readethers '1'
|
|
option leasefile '/tmp/dhcp.leases'
|
|
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
|
|
option nonwildcard '1'
|
|
option localservice '1'
|
|
|
|
config dhcp 'lan'
|
|
option interface 'lan'
|
|
option start '100'
|
|
option limit '150'
|
|
option leasetime '12h'
|
|
option dhcpv6 'server'
|
|
option ra 'server'
|
|
option ra_slaac '1'
|
|
list ra_flags 'managed-config'
|
|
list ra_flags 'other-config'
|
|
option ra_management '1'
|
|
|
|
config dhcp 'wan'
|
|
option interface 'wan'
|
|
option ignore '1'
|
|
|
|
config odhcpd 'odhcpd'
|
|
option maindhcp '0'
|
|
option leasefile '/tmp/hosts/odhcpd'
|
|
option leasetrigger '/usr/sbin/odhcpd-update'
|
|
option loglevel '4'
|
|
|
|
{%- if pillar['dns'] is defined -%}
|
|
{%- for name in pillar['dns'] %}
|
|
config host
|
|
option name {{ name }}
|
|
option ip {{ pillar['dns'][name]['ip'] }}
|
|
option mac {{ pillar['dns'][name]['mac'] }}
|
|
option dns '1'
|
|
|
|
{%- endfor %}
|
|
{%- endif %}
|