mirror of
https://github.com/Luzifer/dns.git
synced 2024-12-22 19:01:20 +00:00
Multiple fixes
This commit is contained in:
parent
d234b7b2e4
commit
ece33bdcf7
3 changed files with 2 additions and 5 deletions
|
@ -33,7 +33,7 @@ func generateZonefiles() {
|
|||
ctx, cancel := context.WithTimeout(context.Background(), 59*time.Second)
|
||||
defer cancel()
|
||||
|
||||
cmd := exec.CommandContext(ctx, "/usr/bin/python", "generateZonefiles.py")
|
||||
cmd := exec.CommandContext(ctx, "/usr/bin/python3", "generateZonefiles.py")
|
||||
cmd.Stdout = iw
|
||||
cmd.Stderr = ew
|
||||
cmd.Dir = "/src"
|
||||
|
|
|
@ -63,8 +63,6 @@ def resolve_alias(entry):
|
|||
raise Exception(
|
||||
"Alias {} was not resolvable: No answers!".format(entry['alias']))
|
||||
|
||||
answers.sort()
|
||||
|
||||
for rdata in answers:
|
||||
new_entry = entry.copy()
|
||||
del new_entry['alias']
|
||||
|
@ -72,7 +70,7 @@ def resolve_alias(entry):
|
|||
new_entry['data'] = rdata.address
|
||||
result.append(new_entry)
|
||||
|
||||
return result
|
||||
return sorted(result, key=lambda k: k['data'])
|
||||
|
||||
|
||||
def sanitize(entry):
|
||||
|
|
|
@ -218,7 +218,6 @@ zones:
|
|||
records:
|
||||
- 4j6vz7jbf3vama3f45pkmzjjliqgirqc.dkim.amazonses.com.
|
||||
- name: ark
|
||||
ttl:
|
||||
type: A
|
||||
records:
|
||||
- 31.214.232.18
|
||||
|
|
Loading…
Reference in a new issue