diff --git a/README.md b/README.md index 4839c15..aed201a 100644 --- a/README.md +++ b/README.md @@ -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 @@ -36,3 +35,4 @@ From [Namecoin Domain Name Specification 2.0](http://wiki.namecoin.info/?title=D | delegate | | | import | | | ds | DS | +| loc | LOC | diff --git a/generate-zone.py b/generate-zone.py index 3f67712..c7ba221 100644 --- a/generate-zone.py +++ b/generate-zone.py @@ -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 @@ -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']+'"'