- Timestamp:
- Nov 2, 2010, 7:51:07 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/gformat.py
r8622 r8636 641 641 for host,ip in wleiden_zone.iteritems(): 642 642 if valid_addr(ip): 643 f.write("%s.wleiden.net. IN A %s \n" % (host , ip))643 f.write("%s.wleiden.net. IN A %s \n" % (host.lower(), ip)) 644 644 for source,dest in wleiden_cname.iteritems(): 645 f.write("%s.wleiden.net. IN CNAME %s.wleiden.net.\n" % (source , dest))645 f.write("%s.wleiden.net. IN CNAME %s.wleiden.net.\n" % (source.lower(), dest.lower())) 646 646 f.close() 647 647 … … 658 658 if int(ip.split('.')[1]) == s: 659 659 rev_ip = '.'.join(reversed(ip.split('.'))) 660 f.write("%s.in-addr.arpa. IN PTR %s.wleiden.net.\n" % (rev_ip , host))660 f.write("%s.in-addr.arpa. IN PTR %s.wleiden.net.\n" % (rev_ip.lower(), host.lower())) 661 661 f.close() 662 662
Note:
See TracChangeset
for help on using the changeset viewer.