yum install bind-utils
#!/bin/sh
ST=`date +%s%N`
for i in `seq 1 100`;
do
dig ya.ru > /dev/null
sleep 0.05
done
let ST=(`date +%s%N`-$ST)/1000000
echo $ST
should be within 5500
Blog
Checking DNS Response with the dig Command
yum install bind-utils #!/bin/sh ST=`date +%s%N` for i in `seq 1 100`; do dig ya.ru > /dev/null sleep 0.05 done let ST=(`date +%s%N`-$ST)/1000000 echo $ST should be within 5500

yum install bind-utils
#!/bin/sh
ST=`date +%s%N`
for i in `seq 1 100`;
do
dig ya.ru > /dev/null
sleep 0.05
done
let ST=(`date +%s%N`-$ST)/1000000
echo $ST
should be within 5500
Note: This post may be AI-assisted and then human-edited. Editorial responsibility: Dmytro Lomaka, Kaltenkirchen.
Essential cookies are always active. Statistics, external fonts and marketing load only with your consent (GDPR).
Language, session, consent storage
Anonymous visit analytics
Google Fonts and other CDNs
Advertising pixels and trackers
Scan to open this site quickly on your phone