Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide secondary for freifunk.net #160

Merged
merged 2 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions dns-server/auth/named.conf.local
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
{%- set update_keys = salt['pillar.get']('netbox:config_context:dns_zones:update_keys') %}
{%- set zones = salt['pillar.get']('netbox:config_context:dns_zones:zones') %}
{%- set freifunk_net_zones = salt['pillar.get']('netbox:config_context:dns_zones:freifunk_net_zones') %}
{%- set freifunk_net_axfr = salt['pillar.get']('netbox:config_context:dns_zones:freifunk_net_axfr_key') %}


{%- for zone_key in update_keys | sort %}
Expand All @@ -17,6 +18,19 @@ key "{{ zone_key }}" {
};
{%- endfor %}

key "freifunk-net-axfr" {
algorithm hmac-sha512;
secret "{{ freifunk_net_axfr['key'] }}";
};

zone „freifunk.net“ {
type slave;
file „/etc/bind/zones/db.freifunk.net“;
allow-notify { 127.0.0.1; ::1; };
notify explicit;
also-notify port 553 { 10.8.0.39; 10.8.0.40; 10.8.0.38; 10.8.0.13; };
masters { 213.160.72.212 key freifunk-net-axfr; };
};

{%- for zone in zones %}
zone "{{ zone }}" {
Expand Down
2 changes: 2 additions & 0 deletions dnsdist/dnsdist.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ newServer({address="1.1.1.1", name="anycastCF", pool="auth"})
{%- endif %}{# authoritative #}

addAction({'in.ffmuc.net', 'ov.ffmuc.net', 'ffmuc.net', 'ffmuc.bayern', 'fnmuc.net', 'freewifi.bayern', 'freifunk-muenchen.de', 'xn--freifunk-mnchen-8vb.de.', 'freifunk-muenchen.net', 'muenchen.freifunk.net', 'xn--mnchen-3ya.freifunk.net', 'augsburg.freifunk.net', 'wertingen.freifunk.net', 'donau-ries.freifunk.net'}, PoolAction("auth"), {name="Redirect-Auth"})
addAction(AndRule({OpcodeRule(DNSOpcode.Notify), NotRule(makeRule("213.160.72.212"))}), RCodeAction(DNSRCode.REFUSED))
addAction({'freifunk.net'}, PoolAction("auth"), {name="Redirect-Auth-freifunk.net"})

{#- some stats #}
addAction({'in-addr.arpa', 'ip6.arpa'}, NoneAction(), {name="RDNS"})
Expand Down
Loading