Welcome to the developers guide for chkdns
!
Install dependencies with poetry:
poetry install
To keep local builds consistent with ci, use make to build and lint:
make build
The project uses pre-commit for commit time checking. You can find the configuration here.
pre-commit install
Sometimes the list of servers used by chkdns
can become stale resulting in an Invalid server
response for certain requests. When this happens it is usually time to update the server list to match what is being used by whatsmydns.net.
Run make scrap_servers
to generate a new list then update the SERVERS
variable in this file.
Releasing is a semi manual but well oiled method. Tags are used to trigger the release steps in the ci process.
Running the following make command will tag and push the latest commit triggering a release.
make tag version="v0.0.5"
Note: Releases can only be generated from the main branch.
You can either build a new package using make build
and install it or run the package directly:
poetry run chkdns