Skip to content

Commit

Permalink
removed LOC
Browse files Browse the repository at this point in the history
  • Loading branch information
CalumMc committed Jun 22, 2015
1 parent d219666 commit 0700fbf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ From [Namecoin Domain Name Specification 2.0](http://wiki.namecoin.info/?title=D
| alias | CNAME |
| translate | DNAME |
| ns | NS |
| loc | LOC |
| map | |

### To Do
Expand All @@ -36,3 +35,4 @@ From [Namecoin Domain Name Specification 2.0](http://wiki.namecoin.info/?title=D
| delegate | |
| import | |
| ds | DS |
| loc | LOC |
11 changes: 0 additions & 11 deletions generate-zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,6 @@ def process_name(self, domain, name_json):
self.imports.append({'import': value[0], 'domain': value[1]+'.'+domain})
elif type(values) == str:
self.imports.append({'import': values, 'domain': domain})
elif record_type == 'loc':
for target in make_list(values):
self.others.append({'type': 'loc', 'domain': domain, 'target': target.encode('ascii', 'ignore')})
elif record_type == 'ds':
pass
except AttributeError:
pass

Expand Down Expand Up @@ -144,12 +139,6 @@ def generate_zone(names):
if record['type'] == 'ns':
if record['domain'] not in cname_list:
yield record['domain'] + ' IN NS ' + record['target']
if record['type'] == 'loc':
if record['domain'] not in cname_list:
yield record['domain'] + ' IN LOC "' + record['target']+'"'
if record['type'] == 'ds':
if record['domain'] not in cname_list:
yield record['domain'] + ' IN DS ' + record['target']
if record['type'] == 'txt':
if record['domain'] not in cname_list:
yield record['domain'] + ' IN TXT "' + record['target']+'"'
Expand Down

0 comments on commit 0700fbf

Please sign in to comment.