nixos/ncdns: listen on IPv6 by default
This commit is contained in:
parent
d08394e7cd
commit
d39a10daa8
|
@ -58,7 +58,7 @@ in
|
||||||
|
|
||||||
address = mkOption {
|
address = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "127.0.0.1";
|
default = "[::1]";
|
||||||
description = ''
|
description = ''
|
||||||
The IP address the ncdns resolver will bind to. Leave this unchanged
|
The IP address the ncdns resolver will bind to. Leave this unchanged
|
||||||
if you do not wish to directly expose the resolver.
|
if you do not wish to directly expose the resolver.
|
||||||
|
@ -202,7 +202,7 @@ in
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
services.pdns-recursor = mkIf cfgs.pdns-recursor.resolveNamecoin {
|
services.pdns-recursor = mkIf cfgs.pdns-recursor.resolveNamecoin {
|
||||||
forwardZonesRecurse.bit = "127.0.0.1:${toString cfg.port}";
|
forwardZonesRecurse.bit = "${cfg.address}:${toString cfg.port}";
|
||||||
luaConfig =
|
luaConfig =
|
||||||
if cfg.dnssec.enable
|
if cfg.dnssec.enable
|
||||||
then ''readTrustAnchorsFromFile("${cfg.dnssec.keys.public}")''
|
then ''readTrustAnchorsFromFile("${cfg.dnssec.keys.public}")''
|
||||||
|
|
Loading…
Reference in a new issue