mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-11-19 14:32:27 -05:00
dns-stats: use simpler pdns_control command
This commit is contained in:
parent
7b7f1de0bd
commit
a8185b3444
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ for host in ${hosts[@]}; do
|
|||
echo
|
||||
|
||||
declare -A stats
|
||||
for field in $(ssh $user@$host "pdns_control show '*'" | tr ',' '\n'); do
|
||||
for field in $(ssh $user@$host 'pdns_control list' | tr ',' '\n'); do
|
||||
IFS== read key value <<<$field
|
||||
stats[$key]=$value
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue