nsd service: fix formatting of example
This commit is contained in:
parent
24d5d28820
commit
f6f892e2d6
@ -621,34 +621,37 @@ in
|
|||||||
zones = mkOption {
|
zones = mkOption {
|
||||||
type = types.attrsOf zoneOptions;
|
type = types.attrsOf zoneOptions;
|
||||||
default = {};
|
default = {};
|
||||||
example = {
|
example = literalExample ''
|
||||||
"serverGroup1" = {
|
{ "serverGroup1" = {
|
||||||
provideXFR = [ "10.1.2.3 NOKEY" ];
|
provideXFR = [ "10.1.2.3 NOKEY" ];
|
||||||
children = {
|
children = {
|
||||||
"example.com." = {
|
"example.com." = {
|
||||||
data = ''
|
data = '''
|
||||||
$ORIGIN example.com.
|
$ORIGIN example.com.
|
||||||
$TTL 86400
|
$TTL 86400
|
||||||
@ IN SOA a.ns.example.com. admin.example.com. (
|
@ IN SOA a.ns.example.com. admin.example.com. (
|
||||||
...
|
...
|
||||||
'';
|
''';
|
||||||
};
|
};
|
||||||
"example.org." = {
|
"example.org." = {
|
||||||
data = ''
|
data = '''
|
||||||
$ORIGIN example.org.
|
$ORIGIN example.org.
|
||||||
$TTL 86400
|
$TTL 86400
|
||||||
@ IN SOA a.ns.example.com. admin.example.com. (
|
@ IN SOA a.ns.example.com. admin.example.com. (
|
||||||
...
|
...
|
||||||
'';
|
''';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
"example.net." = {
|
"example.net." = {
|
||||||
provideXFR = [ "10.3.2.1 NOKEY" ];
|
provideXFR = [ "10.3.2.1 NOKEY" ];
|
||||||
data = ''...'';
|
data = '''
|
||||||
};
|
...
|
||||||
};
|
''';
|
||||||
|
};
|
||||||
|
}
|
||||||
|
'';
|
||||||
description = ''
|
description = ''
|
||||||
Define your zones here. Zones can cascade other zones and therefore
|
Define your zones here. Zones can cascade other zones and therefore
|
||||||
inherit settings from parent zones. Look at the definition of
|
inherit settings from parent zones. Look at the definition of
|
||||||
|
Loading…
x
Reference in New Issue
Block a user