import os from common import * import dhcpd import named import rcnodelocal import resolv import snmpd import dns root = xml_to_obj_hierarchy(sys.argv[1]) ready_nodes_dtd_hierarchy(root) ensure_dir_exists("output") os.chdir("output") open("16.172.in-addr.arpa", 'w').write(dns.interlink_zone(root)) for i in range(17, 32): open("%d.172.in-addr.arpa" % i, 'w').write(dns.reverse_zone(root, i)) open("wleiden.net", 'w').write(dns.wleiden_net(root)) os.chdir("..")