forked from dnsdb/dnsdbq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
54 lines (42 loc) · 1.53 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
This is a pure C program that accesses passive DNS database systems such as:
* the DNSDB API server at Farsight Security
* the CIRCL pDNS server at Computer Incident Response Center (LU)
An API key is required for operation. The command syntax was inspired by a
python script called dnsdb_query, but significant departure has occured,
largely inspired by a modern understanding of "time fencing" and a desire for
new features such as CSV output and JSON reprocessing.
Dependencies:
jansson (2.5 or later)
libcurl (7.28 or later)
On Linux (Debian 8):
apt-get install libcurl4-openssl-dev
apt-get install libjansson-dev
On Linux (CentOS 6):
# Based on PHP instructions for installing libcurl...
wget http://curl.haxx.se/download/curl-7.28.1.tar.gz
tar xvzf curl-7.28.1.tar.gz
cd curl-7.28.1/
./configure --with-libssh2 --enable-ares=/usr/local/ --enable-ipv6
make
make install
# lib jansson
wget http://www.digip.org/jansson/releases/jansson-2.5.tar.gz
tar -xpzf jansson-2.5.tar.gz
cd jansson-2.5
./configure
make
make install
echo /usr/local/lib >> /etc/ld.so.conf.d/local.conf
ldconfig
On FreeBSD 10:
pkg install curl jansson
On OSX:
brew install jansson
Usage notes:
If your rrname, bailiwick or rdata contains the '/' character you
will need to specify -t and/or -b options on the command line, e.g.:
./dnsdbq -t ptr -r 1.0/1.0.168.192.in-addr.arpa
Note that this is currently order-dependent (-t and -b must be first).
Getting Started
Add the API key to ~/.dnsdb-query.conf in the below given format,
APIKEY=YOURAPIKEYHERE