From d0b77929f7c45aae91838104d09a2fa1000f59a1 Mon Sep 17 00:00:00 2001 From: nhyatt Date: Tue, 23 Jan 2024 20:53:15 -0600 Subject: [PATCH] corrects dig command --- internal/nsupdate/nsupdate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/nsupdate/nsupdate.go b/internal/nsupdate/nsupdate.go index f503bf8..a1c4b36 100644 --- a/internal/nsupdate/nsupdate.go +++ b/internal/nsupdate/nsupdate.go @@ -42,7 +42,7 @@ func (c NsUpdateStruct) UpdateTXT(record, recordType, value string) error { value = sanitizeTXT(value) - command := fmt.Sprintf("dig +shord TXT %s", record) + command := fmt.Sprintf("dig +short TXT %s", record) cmd := exec.Command("/usr/bin/env", "sh", "-c", command) cmd.Stdout = &stdout cmd.Stderr = &stderr