Custom SQL function for making DNS lookups
Custom SQL function for making DNS lookups
Install this plugin in the same environment as Datasette.
$ datasette install datasette-dns
So far the only supported SQL function is:
select dns_txt("oreilly.com");
Try this out in the live demo.
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-dns
python3 -mvenv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies and tests:
pip install -e '.[test]'
To run the tests:
pytest