1dnstable: Python bindings for the dnstable library
2--------------------------------------------------
3
4`pydnstable` is a Python wrapper for [dnstable](https://github.com/farsightsec/dnstable).
5
6
7Usage
8-----
9
10See ```tests/test.py``` for other query examples. Note that you *must* pass a fileset to ```reader()```
11
12    >>> from dnstable import *
13    >>> r = reader("test-dns.fileset")
14    >>> q = query(RRSET, 'www.example.com')
15    >>> for i in r.query(q): print(i)
16    ...
17    ;;  bailiwick: example.com.
18    ;;      count: 1
19    ;; first seen: 2018-03-27 10:43:28 -0000
20    ;;  last seen: 2018-03-27 10:43:28 -0000
21    www.example.com. IN A 198.51.100.3
22    www.example.com. IN A 198.51.100.4
23
24    ;;  bailiwick: example.com.
25    ;;      count: 1
26    ;; first seen: 2018-03-27 10:43:28 -0000
27    ;;  last seen: 2018-03-27 10:43:28 -0000
28    www.example.com. IN AAAA 2001:db8::1
29    www.example.com. IN AAAA 2001:db8::2
30
31