Bash script to check DNS ping from the terminal and choose fastest domain resolver response.
Easy way to check several IPs to get how fast is from your origin. In that example has been included DNS servers for Spain, but it can be any group of IPs you decide to check, as VPS, CDNs, etc.
wget --no-check-certificate https://raw.githubusercontent.com/rafa3d/dnsping/main/dnsping.sh -O - -o /dev/null|bash