Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
dac7a3d2
Commit
dac7a3d2
authored
Dec 12, 2021
by
Jens Meißner
Committed by
neil
Jan 06, 2022
Browse files
[dns_knot] Use key command instead of command line argument to transmit dns key data.
parent
beed123f
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_knot.sh
View file @
dac7a3d2
...
...
@@ -19,8 +19,9 @@ dns_knot_add() {
_info
"Adding
${
fulldomain
}
. 60 TXT
\"
${
txtvalue
}
\"
"
knsupdate
-y
"
${
KNOT_KEY
}
"
<<
EOF
knsupdate
<<
EOF
server
${
KNOT_SERVER
}
key
${
KNOT_KEY
}
zone
${
_domain
}
.
update add
${
fulldomain
}
. 60 TXT "
${
txtvalue
}
"
send
...
...
@@ -49,8 +50,9 @@ dns_knot_rm() {
_info
"Removing
${
fulldomain
}
. TXT"
knsupdate
-y
"
${
KNOT_KEY
}
"
<<
EOF
knsupdate
<<
EOF
server
${
KNOT_SERVER
}
key
${
KNOT_KEY
}
zone
${
_domain
}
.
update del
${
fulldomain
}
. TXT
send
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment