corrects dig command

This commit is contained in:
Hyatt 2024-01-23 20:53:15 -06:00
parent 9cfc330971
commit d0b77929f7
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -42,7 +42,7 @@ func (c NsUpdateStruct) UpdateTXT(record, recordType, value string) error {
value = sanitizeTXT(value) 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 := exec.Command("/usr/bin/env", "sh", "-c", command)
cmd.Stdout = &stdout cmd.Stdout = &stdout
cmd.Stderr = &stderr cmd.Stderr = &stderr