#
'orgstuff': CName('example.org.'), # CNAMEs cannot be combined with other records
#
- 'sub1': Delegation('ns.example.org.'), # this adds an NS record
+ 'sub1': Delegation('ns.example.org.', 'ns'), # this adds an NS record
'sub2': SecureDelegation('ns.example.com.', 12345, Algorithm.RSA_SHA256, Digest.SHA256, '0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF'), # this adds an NS and a DS record
#
'local': {
return Name(CNAME(name))
-def Delegation(name: str) -> Name:
- return Name(NS(name))
+def Delegation(name: str, *names) -> Name:
+ return Name(NS(name), list(map(NS, names)))
def SecureDelegation(name: str, tag: int, alg: int, digest: int, key: str) -> Name: