datasette-dns

Custom SQL function for making DNS lookups

Downloads
49
Stars
5

datasette-dns

Custom SQL function for making DNS lookups

Installation

Install this plugin in the same environment as Datasette.

$ datasette install datasette-dns

Usage

So far the only supported SQL function is:

select dns_txt("oreilly.com");

Try this out in the live demo.

Development

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