Changeset 8636 in genesis for tools


Ignore:
Timestamp:
Nov 2, 2010, 7:51:07 PM (14 years ago)
Author:
richardvm
Message:

duplicate entry

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r8622 r8636  
    641641  for host,ip in wleiden_zone.iteritems():
    642642    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))
    644644  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()))
    646646  f.close()
    647647 
     
    658658        if int(ip.split('.')[1]) == s:
    659659          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()))
    661661    f.close()
    662662
Note: See TracChangeset for help on using the changeset viewer.