Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
COPYRIGHT | H A D | 17-Jun-2019 | 575 | 14 | 10 | |
LICENSE | H A D | 15-Oct-2018 | 11.1 KiB | 203 | 169 | |
PKG-INFO | H A D | 03-Jul-2019 | 310 | 11 | 10 | |
README.md | H A D | 17-Jun-2019 | 925 | 31 | 23 | |
dnstable.pxi | H A D | 27-Jun-2019 | 4.7 KiB | 117 | 103 | |
dnstable.pyx | H A D | 27-Jun-2019 | 12.1 KiB | 350 | 286 | |
setup.py | H A D | 27-Jun-2019 | 2.9 KiB | 104 | 77 |
README.md
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