Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
2ed3011
added cymru enricher
phillip-stephens May 1, 2026
03ef108
pull details for both peer and origin asns and let orign asns be a li…
phillip-stephens May 3, 2026
efe22ff
use zdns resolvers internally
phillip-stephens May 4, 2026
da03ab3
add cymru readme docs
phillip-stephens May 4, 2026
4e33f70
fix up tests
phillip-stephens May 4, 2026
efc37da
lint and cleanup
phillip-stephens May 4, 2026
9f32f17
streamline test mock
phillip-stephens May 4, 2026
c4f53b6
drop default threads to prevent errors and better error logging
phillip-stephens May 4, 2026
161d368
drop default threads after testing and handle the case where an IP ha…
phillip-stephens May 4, 2026
defad4f
downgrade error msgs to debug, we don't want to clutter the output
phillip-stephens May 4, 2026
6e0408a
remove comment
phillip-stephens May 4, 2026
5e4a4c0
add cache to cymru
phillip-stephens May 5, 2026
189b794
lint
phillip-stephens May 5, 2026
9085655
Merge branch 'main' into phillip/3-cymru-support
phillip-stephens May 5, 2026
b437d95
Merge branch 'main' into phillip/3-cymru-support
zakird May 5, 2026
81c028c
Merge branch 'main' into phillip/3-cymru-support
phillip-stephens May 5, 2026
e22d4f6
add GroupName to Cymru
phillip-stephens May 5, 2026
ad8f3b4
let users decide which Cymru endpoints to query
phillip-stephens May 5, 2026
749dc9c
return a slice rather than map for easier downstream processing
phillip-stephens May 6, 2026
abdf666
add cymru sub-sample flags to readme
phillip-stephens May 6, 2026
d609071
return empty struct on error instead of null
phillip-stephens May 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,3 +325,19 @@ IP Network:
Type: ASSIGNED PORTABLE
...<further output truncated for brevity>
```
## Cymru

Cymru provides ASN and BGP peering info for IP addresses. You can use the `--cymru` flag to query Cymru for this information.
Cymru has setup a DNS service to provide this information and by default ZAnnotate will use your system default DNS resolvers to query.
If you find you're seeing timeouts using your local DNS resolver, you can specify custom resolvers with the `--cymru-dns-servers` flag.
`--cymru-threads` and `--cymru-timeout` are also available to configure performance of Cymru annotations, defaults are set to get good performance while avoiding timeouts with most DNS resolvers.
By default, the Cymru annotator fetches the origin and peer ASs' as well as AS details on all ASNs. Should you desire a subset, the following flags are available:
`--cymru-annotate-origin-as`, `--cymru-annotate-peer-as`, and `--cymru-annotate-as-details`

```shell
printf "1.1.1.1" | ./zannotate --cymru --cymru-dns-servers=1.1.1.1,1.0.0.1
```

```json
{"ip":"207.243.195.103","cymru":{"origin_asns":[7018],"peer_asns":[6939,1299,2914,3257,6461,6762],"asn_details":{"7018":{"asn":7018,"country_code":"US","registry":"arin","asn_allocation_date":"1996-07-30","asn_description":"ATT-INTERNET4 - AT&T Enterprises, LLC, US"},"6939":{"asn":6939,"country_code":"US","registry":"arin","asn_allocation_date":"1996-06-28","asn_description":"HURRICANE - Hurricane Electric LLC, US"},"1299":{"asn":1299,"country_code":"SE","registry":"ripencc","asn_allocation_date":"1993-09-01","asn_description":"TWELVE99 Arelion, fka Telia Carrier, SE"},"2914":{"asn":2914,"country_code":"US","registry":"arin","asn_allocation_date":"1998-12-07","asn_description":"NTT-DATA-2914 - NTT America, Inc., US"},"3257":{"asn":3257,"country_code":"US","registry":"ripencc","asn_allocation_date":"1994-09-30","asn_description""GTT-BACKBONE GTT, US"},"6461":{"asn":6461,"country_code":"US","registry":"arin","asn_allocation_date":"1996-04-22","asn_description":"ZAYO-6461 - Zayo Bandwidth, US"},"6762":{"asn":6762,"country_code":"IT","registry":"ripencc","asn_allocation_date":"1996-09-12","asn_description":"SEABONE-NET TELECOM ITALIA SPARKLE S.p.A., IT"}},"prefix_details":{"207.242.0.0/15":{"prefix":"207.242.0.0/15","origin_asns":[7018],"peer_asns":[1299,2914,3257,6461,6762,6939],"country_code":"US","registry":"arin","allocation_date":"1996-11-01" }}}}
```
Loading
Loading