@ -30,10 +30,10 @@ in {
enable = mkEnableOption " P o w e r D N S R e c u r s o r , a r e c u r s i v e D N S s e r v e r " ;
dns . address = mkOption {
type = types . str ;
default = "0 . 0 . 0 . 0 " ;
type = oneOrMore types . str ;
default = [ " : : " "0 . 0 . 0 . 0 " ] ;
description = ''
IP address Recursor DNS server will bind to .
IP addresses Recursor DNS server will bind to .
'' ;
} ;
@ -47,8 +47,12 @@ in {
dns . allowFrom = mkOption {
type = types . listOf types . str ;
default = [ " 1 0 . 0 . 0 . 0 / 8 " " 1 7 2 . 1 6 . 0 . 0 / 1 2 " " 1 9 2 . 1 6 8 . 0 . 0 / 1 6 " ] ;
example = [ " 0 . 0 . 0 . 0 / 0 " ] ;
default = [
" 1 2 7 . 0 . 0 . 0 / 8 " " 1 0 . 0 . 0 . 0 / 8 " " 1 0 0 . 6 4 . 0 . 0 / 1 0 "
" 1 6 9 . 2 5 4 . 0 . 0 / 1 6 " " 1 9 2 . 1 6 8 . 0 . 0 / 1 6 " " 1 7 2 . 1 6 . 0 . 0 / 1 2 "
" : : 1 / 1 2 8 " " f c 0 0 : : / 7 " " f e 8 0 : : / 1 0 "
] ;
example = [ " 0 . 0 . 0 . 0 / 0 " " : : / 0 " ] ;
description = ''
IP address ranges of clients allowed to make DNS queries .
'' ;
@ -72,7 +76,8 @@ in {
api . allowFrom = mkOption {
type = types . listOf types . str ;
default = [ " 0 . 0 . 0 . 0 / 0 " ] ;
default = [ " 1 2 7 . 0 . 0 . 1 " " : : 1 " ] ;
example = [ " 0 . 0 . 0 . 0 / 0 " " : : / 0 " ] ;
description = ''
IP address ranges of clients allowed to make API requests .
'' ;
@ -96,7 +101,7 @@ in {
forwardZonesRecurse = mkOption {
type = types . attrs ;
example = { eth = " 1 2 7 . 0 . 0 . 1 : 5 3 5 3 " ; } ;
example = { eth = " [ : : 1 ] : 5 3 5 3 " ; } ;
default = { } ;
description = ''
DNS zones to be forwarded to other recursive servers .