Changeset 10660 in genesis


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.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • dns/staticDNS.yaml

    r10658 r10660  
    111111# WL Servers:
    112112- sunfire: 172.19.128.68
    113 - sunny : 172.16.4.46
     113- sunny : { 'reverse' : True, 'a' : 172.16.4.46 }
    114114- dyndns : 172.16.4.46
    115115- wlconfig : sunny
  • 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.