mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
hosts/plover: update Bind server config
This commit is contained in:
parent
c9440205cf
commit
a8aef35c5c
@ -108,13 +108,17 @@ in
|
|||||||
include "${config.sops.secrets."plover/dns/${domain}/rfc2136-key".path}";
|
include "${config.sops.secrets."plover/dns/${domain}/rfc2136-key".path}";
|
||||||
acl trusted { ${lib.concatStringsSep "; " internalsACL}; localhost; };
|
acl trusted { ${lib.concatStringsSep "; " internalsACL}; localhost; };
|
||||||
|
|
||||||
view external {
|
view internal {
|
||||||
match-clients { any; };
|
match-clients { trusted; };
|
||||||
|
|
||||||
forwarders { };
|
|
||||||
empty-zones-enable yes;
|
|
||||||
allow-query { any; };
|
allow-query { any; };
|
||||||
allow-recursion { none; };
|
allow-recursion { any; };
|
||||||
|
forwarders { 127.0.0.53 port 53; };
|
||||||
|
|
||||||
|
zone "${fqdn}" {
|
||||||
|
type primary;
|
||||||
|
file "${zoneFile fqdn}";
|
||||||
|
};
|
||||||
|
|
||||||
zone "${domain}" {
|
zone "${domain}" {
|
||||||
type primary;
|
type primary;
|
||||||
@ -127,18 +131,16 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
view internal {
|
view external {
|
||||||
match-clients { trusted; };
|
match-clients { any; };
|
||||||
allow-recursion { any; };
|
|
||||||
forwarders { 127.0.0.53 port 53; };
|
|
||||||
|
|
||||||
zone "${fqdn}" {
|
forwarders { };
|
||||||
type primary;
|
empty-zones-enable yes;
|
||||||
file "${zoneFile fqdn}";
|
allow-query { any; };
|
||||||
};
|
allow-recursion { none; };
|
||||||
|
|
||||||
zone "${domain}" {
|
zone "${domain}" {
|
||||||
in-view external;
|
in-view internal;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user