|
@ -46,7 +46,7 @@ dns_lua_add() { |
|
|
return 1 |
|
|
return 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
count=$(printf "%s\n" "$response" | _egrep_o "\"name\":\"$fulldomain\"" | wc -l | tr -d " ") |
|
|
|
|
|
|
|
|
count=$(printf "%s\n" "$response" | _egrep_o "\"name\":\"$fulldomain.\",\"type\":\"TXT\"" | wc -l | tr -d " ") |
|
|
_debug count "$count" |
|
|
_debug count "$count" |
|
|
if [ "$count" = "0" ]; then |
|
|
if [ "$count" = "0" ]; then |
|
|
_info "Adding record" |
|
|
_info "Adding record" |
|
|