Skip to content

Commit

Permalink
bug fix on generating record config
Browse files Browse the repository at this point in the history
  • Loading branch information
anantadwi13 committed Aug 26, 2021
1 parent 2fcb549 commit 14253c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/bind9.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ func (b *bind9Server) generateNamedConf(zones []*Zone) error {
}

func (b *bind9Server) generateDbRecords(ctx context.Context, zones []*Zone) (err error) {
fileContents := "$TTL 14400\n"
soaFormat := `%v IN SOA %v %v (
%v ; Serial 2021082501
%v ; Refresh 7200
Expand All @@ -160,6 +159,7 @@ func (b *bind9Server) generateDbRecords(ctx context.Context, zones []*Zone) (err
recordFormat := "%v IN %v %v\n"

for _, zone := range zones {
fileContents := "$TTL 14400\n"
soa := zone.SOA
if soa == nil {
continue
Expand Down

0 comments on commit 14253c3

Please sign in to comment.