diff --git a/internal/nsupdate/nsupdate.go b/internal/nsupdate/nsupdate.go index 4b4f51d..1fdbbb5 100644 --- a/internal/nsupdate/nsupdate.go +++ b/internal/nsupdate/nsupdate.go @@ -41,6 +41,7 @@ func (c NsUpdateStruct) UpdateTXT(record, recordType, value string) error { r, err := net.LookupTXT(record) if err != nil { config.Cfg.Log.Info("unable to get existing record", "record", record, "error", err) + return err } var oldTXT string @@ -135,7 +136,7 @@ func sanitizeTXT(s string) string { s = "" for i, r := range a { s += string(r) - if i > 0 && (i+1)%254 == 0 { + if i > 0 && (i+1)%200 == 0 { s += string(`" "`) } }