Skip to content

Commit

Permalink
Add README for IANA crawler
Browse files Browse the repository at this point in the history
  • Loading branch information
m-appel committed Dec 20, 2023
1 parent 0150809 commit 77d2564
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions iyp/crawlers/iana/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# IANA -- https://www.iana.org/

The Internet Assigned Numbers Authority (IANA) is responsible for the global
coordination of the DNS Root, IP addressing, and other Internet protocol resources.

Datasets used by IYP:

- DNS [root zone file](https://www.iana.org/domains/root/files) to retrieve information
about authoritative name servers of the top-level domains as well as their IP
addresses.

## Graph representation

### Root zone file - `root_zone.py`

IYP imports `NS`, `A`, and `AAAA` records from the root zone file.

```Cypher
// NS record
(:DomainName {name: 'jp'})-[:MANAGED_BY]->(:DomainName:AuthoritativeNameServer {name: 'a.dns.jp'})
// A record
(:DomainName:AuthoritativeNameServer {name: 'a.dns.jp'})-[:RESOLVES_TO]->(:IP {ip: '203.119.1.1'})
// AAAA record
(:DomainName:AuthoritativeNameServer {name: 'a.dns.jp'})-[:RESOLVES_TO]->(:IP {ip: '2001:dc4::1'})
```

0 comments on commit 77d2564

Please sign in to comment.