Skip to content

Instantly share code, notes, and snippets.

@ifduyue
Last active August 17, 2016 04:47
Show Gist options
  • Save ifduyue/3f1ab70f8bf63d657a9a3edf8cc19bf6 to your computer and use it in GitHub Desktop.
Save ifduyue/3f1ab70f8bf63d657a9a3edf8cc19bf6 to your computer and use it in GitHub Desktop.
Generate dnsmasq servers-file, servers come from public-dns.info
curl -sSL http://public-dns.info/nameserver/cn.txt | perl -MList::Util=shuffle -e 'print shuffle<STDIN>' | head -n10 | xargs -L1 -I{} echo "server={}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment