1 from nsconfig import Nsc
3 from nsconfig.daemon.bind import NscDaemonBind
6 admin_email='admin@example.org',
7 origin_server='ns.example.org',
8 daemon=NscDaemonBind(control_command='echo'),
11 nsconfig.sink.generate_localhost(nsc)
12 nsconfig.sink.generate_blackhole(nsc)
14 for rev in ['10.1.0.0/16', '10.2.0.0/16', 'fd12:3456:789a::/48']:
15 rz = nsc.add_zone(reverse_for=rev)
16 rz[""].NS('ns1.example.org', 'ns2.example.org')
18 nsc.add_zone('example.net', follow_primary='10.42.0.1')
20 rz = nsc.add_zone(reverse_for='10.3.0.0/16')
21 rz.delegate_classless('10.3.16.0/20').NS('ns1.example.org')
23 rz = nsc.add_zone(reverse_for='10.3.16.0/20')
24 rz[""].NS('ns1.example.org')
26 import example.example_org