corrects dig command
This commit is contained in:
parent
9cfc330971
commit
d0b77929f7
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user