mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-02 06:30:53 +03:00
install_easy: single thread mdig for single resolve
This commit is contained in:
parent
f66b59af76
commit
4016534dfe
@ -801,7 +801,7 @@ check_dns_spoof()
|
|||||||
{
|
{
|
||||||
# $1 - domain
|
# $1 - domain
|
||||||
# $2 - public DNS
|
# $2 - public DNS
|
||||||
echo $1 | "$EXEDIR/mdig/mdig" --threads=10 --family=4 >"$DNSCHECK_DIG1"
|
echo $1 | "$EXEDIR/mdig/mdig" --family=4 >"$DNSCHECK_DIG1"
|
||||||
nslookup $1 $2 | sed -n '/Name:/,$p' | grep ^Address | grep -oE '([0-9]{1,3}\.){3}[0-9]{1,3}' >"$DNSCHECK_DIG2"
|
nslookup $1 $2 | sed -n '/Name:/,$p' | grep ^Address | grep -oE '([0-9]{1,3}\.){3}[0-9]{1,3}' >"$DNSCHECK_DIG2"
|
||||||
# check whether system resolver returns anything other than public DNS
|
# check whether system resolver returns anything other than public DNS
|
||||||
grep -qvFf "$DNSCHECK_DIG2" "$DNSCHECK_DIG1"
|
grep -qvFf "$DNSCHECK_DIG2" "$DNSCHECK_DIG1"
|
||||||
|
Loading…
Reference in New Issue
Block a user