Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
a95e83ab
Commit
a95e83ab
authored
Oct 03, 2021
by
Bjarne Saltbaek
Browse files
Added txtvalue to dns lookup
parent
86daaf4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
dnsapi/dns_cpanel.sh
View file @
a95e83ab
...
@@ -145,9 +145,10 @@ _findentry() {
...
@@ -145,9 +145,10 @@ _findentry() {
_debug
"In _findentry"
_debug
"In _findentry"
#returns id of dns entry, if it exists
#returns id of dns entry, if it exists
_myget
"json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_module=ZoneEdit&cpanel_jsonapi_func=fetchzone_records&domain=
$_domain
"
_myget
"json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_module=ZoneEdit&cpanel_jsonapi_func=fetchzone_records&domain=
$_domain
"
_id
=
$(
echo
"
$_result
"
|
sed
"s/.*
\(
line.*
$fulldomain
\)
.*/
\1
/"
|
cut
-d
':'
-f
2 |
cut
-d
','
-f
1
)
_id
=
$(
echo
"
$_result
"
|
sed
"s/.*
\(
line.*
$fulldomain
.*
$txtvalue
\)
.*/
\1
/"
|
cut
-d
':'
-f
2 |
cut
-d
','
-f
1
)
_debug
"_result is:
$_result
"
_debug
"_result is:
$_result
"
_debug
"fulldomain. is
$fulldomain
."
_debug
"fulldomain. is
$fulldomain
."
_debug
"txtvalue is
$txtvalue
"
_debug
"_id is:
$_id
"
_debug
"_id is:
$_id
"
if
[
-n
"
$_id
"
]
;
then
if
[
-n
"
$_id
"
]
;
then
_debug
"Entry found with _id=
$_id
"
_debug
"Entry found with _id=
$_id
"
...
...
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