|
@ -19,8 +19,9 @@ dns_knot_add() { |
|
|
|
|
|
|
|
|
_info "Adding ${fulldomain}. 60 TXT \"${txtvalue}\"" |
|
|
_info "Adding ${fulldomain}. 60 TXT \"${txtvalue}\"" |
|
|
|
|
|
|
|
|
knsupdate -y "${KNOT_KEY}" <<EOF |
|
|
|
|
|
|
|
|
knsupdate <<EOF |
|
|
server ${KNOT_SERVER} |
|
|
server ${KNOT_SERVER} |
|
|
|
|
|
key ${KNOT_KEY} |
|
|
zone ${_domain}. |
|
|
zone ${_domain}. |
|
|
update add ${fulldomain}. 60 TXT "${txtvalue}" |
|
|
update add ${fulldomain}. 60 TXT "${txtvalue}" |
|
|
send |
|
|
send |
|
@ -49,8 +50,9 @@ dns_knot_rm() { |
|
|
|
|
|
|
|
|
_info "Removing ${fulldomain}. TXT" |
|
|
_info "Removing ${fulldomain}. TXT" |
|
|
|
|
|
|
|
|
knsupdate -y "${KNOT_KEY}" <<EOF |
|
|
|
|
|
|
|
|
knsupdate <<EOF |
|
|
server ${KNOT_SERVER} |
|
|
server ${KNOT_SERVER} |
|
|
|
|
|
key ${KNOT_KEY} |
|
|
zone ${_domain}. |
|
|
zone ${_domain}. |
|
|
update del ${fulldomain}. TXT |
|
|
update del ${fulldomain}. TXT |
|
|
send |
|
|
send |
|
|