Skip to content

Commit

Permalink
fix: Set TTL explicityly for subdomains (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
nt0xa authored Aug 17, 2020
1 parent 65c8ed2 commit 6461ff5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions internal/handlers/dnsx/static.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ import (

var recordsTpl = tpl.MustParse(`
@ IN 600 NS ns1
* IN 0 NS ns1
* IN 0 NS ns1
@ IN 600 NS ns2
* IN 0 NS ns2
* IN 0 NS ns2
{{ if .IP.To4 -}}
@ IN 600 A {{ .IP }}
* IN A {{ .IP }}
* IN 0 A {{ .IP }}
@ IN 600 AAAA ::ffff:{{ .IP }}
* IN AAAA ::ffff:{{ .IP }}
* IN 0 AAAA ::ffff:{{ .IP }}
{{- else -}}
@ IN 600 AAAA {{ .IP }}
* IN AAAA {{ .IP }}
@ IN 0 AAAA {{ .IP }}
* IN 0 AAAA {{ .IP }}
{{- end }}
@ 600 IN MX 10 mx
* 0 IN MX 10 mx
* 0 IN MX 10 mx
@ 600 IN CAA 0 issue "letsencrypt.org"
`)

Expand Down

0 comments on commit 6461ff5

Please sign in to comment.