├── .github └── workflows │ └── main.yml ├── README.md └── resolvers.txt /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: 4 | schedule: 5 | - cron: "0 8,20 * * *" 6 | 7 | jobs: 8 | build: 9 | runs-on: ubuntu-latest 10 | steps: 11 | - uses: actions/checkout@master 12 | with: 13 | token: ${{ secrets.GITHUB_PERSONAL_TOKEN }} 14 | - name: dnsvalidator 15 | run: | 16 | git clone https://github.com/vortexau/dnsvalidator 17 | cd dnsvalidator 18 | pip3 install wheel 19 | pip3 install setuptools 20 | sudo python3 setup.py install 21 | rm ../resolvers.txt 22 | dnsvalidator -tL https://raw.githubusercontent.com/janmasarik/resolvers/master/resolvers.txt -threads 5 -o ../resolvers.txt 23 | sed -i '/^$/d' ../resolvers.txt 24 | - name: Commit resolvers.txt 25 | run: | 26 | git config --local user.email "action@github.com" 27 | git config --local user.name "GitHub Action" 28 | git add resolvers.txt 29 | git commit -m "Update resolvers" -a 30 | git push "https://janmasarik:${{ secrets.GITHUB_PERSONAL_TOKEN }}@github.com/janmasarik/resolvers.git" HEAD:master --follow-tags 31 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # resolvers.txt 2 | Fresh list of periodically validated public DNS resolvers. 3 | 4 | ```bash 5 | $ wget https://raw.githubusercontent.com/janmasarik/resolvers/master/resolvers.txt 6 | $ massdns -r resolvers.txt domains_to_resolve.txt 7 | ``` 8 | 9 | ## Why? 10 | People need a list of *good* resolvers (e.g. for [massdns](https://github.com/blechschmidt/massdns)). Why spend all that traffic on refreshing a private list? Let's use and improve this one! ᕕ( ᐛ )ᕗ 11 | 12 | ## How it's done 13 | Validation is done using [dnsvalidator](https://github.com/vortexau/dnsvalidator/) every 12 hours using **Github Actions** that push the fresh results back to this repository. 14 | 15 | ## Thanks 16 | - [@vortexau](https://twitter.com/vortexau) and [@codingo_](https://twitter.com/codingo_) for creating [dnsvalidator](https://github.com/vortexau/dnsvalidator)! 17 | - GitHub for *hosting* this on GitHub Actions! :heart: 18 | -------------------------------------------------------------------------------- /resolvers.txt: -------------------------------------------------------------------------------- 1 | 129.250.35.251 2 | 208.67.222.222 3 | 8.8.8.8 4 | 208.67.220.222 5 | 1.0.0.1 6 | 8.8.4.4 7 | --------------------------------------------------------------------------------