Changeset 10660 in genesis for tools


Ignore:
Timestamp:
May 3, 2012, 5:52:28 AM (13 years ago)
Author:
rick
Message:

I like stuff like the sunny IP to have an single PTR record.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/gformat.py

    r10659 r10660  
    10921092
    10931093  for line in dns_list:
     1094    reverse = False
    10941095    k, items = line.items()[0]
    1095     items = [items] if type(items) == str else items
     1096    if type(items) == dict:
     1097      if items.has_key('reverse'):
     1098        reverse = items['reverse']
     1099        items = items['a']
     1100      else:
     1101        items = items['cname']
     1102    items = [items] if type(items) != list else items
    10961103    for item in items:
    10971104      if item.startswith('IN '):
    10981105        wleiden_raw[k] = item
    10991106      elif valid_addr(item):
    1100         wleiden_zone[k].append((item, False))
     1107        wleiden_zone[k].append((item, reverse))
    11011108      else:
    11021109        wleiden_cname[k] = item
Note: See TracChangeset for help on using the changeset viewer.