https://github.com/csirtgadgets/dnsdb-py
a simpler dnsdb python sdk
https://github.com/csirtgadgets/dnsdb-py
dnsdb farsight security
Last synced: 4 months ago
JSON representation
a simpler dnsdb python sdk
- Host: GitHub
- URL: https://github.com/csirtgadgets/dnsdb-py
- Owner: csirtgadgets
- License: mpl-2.0
- Created: 2016-12-23T14:14:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-15T16:55:38.000Z (over 5 years ago)
- Last Synced: 2026-01-07T10:18:18.314Z (6 months ago)
- Topics: dnsdb, farsight, security
- Language: Python
- Homepage: http://api.dnsdb.info
- Size: 35.2 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# Farsight dnsdb.info client
# Getting Started
## Commandline
```bash
$ export FARSIGHT_TOKEN=1234
$ pip install csirtg_dnsdb
$ dnsdb --search 172.217.6.206
$ dnsdb -q google.com
```
## SDK
```python
from pprint import pprint
import json
from csirtg_dnsdb.client import Client
p = ArgumentParser(
description=textwrap.dedent('''\
example usage:
$ dnsdb -q 1.2.3.4
'''),
formatter_class=RawDescriptionHelpFormatter,
prog='dnsdb',
)
p.add_argument('--token', help='specify api token', default=TOKEN)
p.add_argument('--search', '-q', help='search for something')
args = p.parse_args()
c = Client(token=args.token)
for r in c.search(args.search):
print(json.dumps(r))
```
# Getting Involved
There are many ways to get involved with the project. If you have a new and exciting feature, or even a simple bugfix, simply [fork the repo](https://help.github.com/articles/fork-a-repo), create some simple test cases, [generate a pull-request](https://help.github.com/articles/using-pull-requests) and give yourself credit!
If you've never worked on a GitHub project, [this is a good piece](https://guides.github.com/activities/contributing-to-open-source) for getting started.
* [How To Contribute](contributing.md)
# Development
## Some of the tools we use:
* [PyCharm](https://www.jetbrains.com/pycharm/)
* [VirtualenvWrapper](https://virtualenvwrapper.readthedocs.org/en/latest/)
* [Vagrant](https://www.vagrantup.com/)
# COPYRIGHT AND LICENCE
Copyright (C) 2016 [the CSIRT Gadgets Foundation](http://csirtgadgets.org)
Free use of this software is granted under the terms of the Mozilla Public Licence v2 (MPL2). For details see the files `LICENSE` included with the distribution.