-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
38 lines (27 loc) · 1.14 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
This project is a collection of scripts for building an IP2AS database.
Included is a script for hooking into powerdns enabling one to query the
DNS server for an IP and returning information regarding it's AS
as well as some details of that AS.
Functionality inspired by the Team Cymru "IP to ASN Mapping" service[0].
Uses data from:
- ftp.arin.net/pub/stats/arin/delegated-arin-latest
- ftp.ripe.net/ripe/stats/delegated-ripencc-latest
- ftp.afrinic.net/pub/stats/afrinic/delegated-afrinic-latest
- ftp.apnic.net/pub/stats/apnic/delegated-apnic-latest
- ftp.lacnic.net/pub/stats/lacnic/delegated-lacnic-latest
- http://www.cidr-report.org
Dependencies:
- python (tested with v2.6) (better performance with pypy)
- RIPE's bgpdump[1]
- SubnetTree[2]
- PowerDNS (optional)
Setup:
- setup a cronjob to regularly call "update.sh"
Usage:
1. use the powerdns pipebackend
e.g.
dig +short txt <ip>.<ip2as-domain> @<server>
2. use the python module as shown in ip2as.py at the bottom
[0]: http://www.team-cymru.org/Services/ip-to-asn.html
[1]: http://www.ris.ripe.net/source/bgpdump/
[2]: http://bro-ids.org/download/README.pysubnettree.html