Files
nm/roles/configure/templates/dnsmasq.conf.j2

20 lines
571 B
Plaintext
Raw Normal View History

2024-09-03 19:13:07 +03:00
# MANAGED BY ANSIBLE DONT TOUCH BY HANDS #
2024-09-03 20:26:52 +03:00
{% for interface in without_lte.stdout_lines %}
interface={{ interface }}
{% endfor %}
2024-09-03 19:13:07 +03:00
{% for nameserver in nameservers %}
server={{ nameserver }}
{% endfor %}
dhcp-range={{ range_start }},{{ range_end }},12h
2024-09-01 22:27:07 +03:00
dhcp-option=1,{{ netmask }}
dhcp-option=2,{{ lease_time }} # время аренды в секундах
dhcp-option=3,{{ wifi_int_ip }} # шлюз по умолчанию
dhcp-authoritative
2024-09-03 19:13:07 +03:00
# Static
{% for mac_ip in static %}
dhcp-host={{ mac_ip }}
{% endfor %}
2024-09-01 22:27:07 +03:00
log-queries
#log-dhcp
2024-09-03 19:13:07 +03:00
log-facility=/var/log/dnsmasq.log