We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61c8079 commit e2f24e7Copy full SHA for e2f24e7
lib/cert-functions
@@ -136,11 +136,11 @@ cert-resource-record-valid() {
136
#
137
# Usage: cert-resource-record-valid <name> <type> <value>
138
139
- [[ "$#" -ne 3 ]] && __bma_usage "<name> <type> <value" && return 1
+ [[ "$#" -lt 2 ]] && __bma_usage "<name> <value> [type]" && return 1
140
141
local name="$1"
142
- local type="$2"
143
- local value="$3"
+ local value="$2"
+ local type="${3:-CNAME}"
144
145
# Perform the DNS query
146
local output=$(dig +noall +answer "$name" "$type")
0 commit comments