1
0
Fork 0
mirror of https://github.com/Luzifer/rootzone.git synced 2024-11-08 07:50:07 +00:00
Generator for named stub file containing IANA and OpenNIC root zones
Find a file
dependabot[bot] 7e57ad647f
Bump golang.org/x/net from 0.0.0-20190522155817-f3200d17e092 to 0.7.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20190522155817-f3200d17e092 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/commits/v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-24 18:43:57 +00:00
.gitignore Initial version 2019-05-25 17:09:31 +02:00
go.mod Bump golang.org/x/net from 0.0.0-20190522155817-f3200d17e092 to 0.7.0 2023-02-24 18:43:57 +00:00
go.sum Bump golang.org/x/net from 0.0.0-20190522155817-f3200d17e092 to 0.7.0 2023-02-24 18:43:57 +00:00
iana.go Add retries to all DNS calls 2019-06-22 20:03:17 +02:00
internic.go Initial version 2019-05-25 17:09:31 +02:00
LICENSE Initial version 2019-05-25 17:09:31 +02:00
main.go Make adding OpenNIC TLDs optional 2020-12-17 11:10:31 +01:00
opennic.go Add retries to all DNS calls 2019-06-22 20:03:17 +02:00
README.md Update README 2019-05-25 17:27:30 +02:00
retry.go Add retries to all DNS calls 2019-06-22 20:03:17 +02:00

Go Report Card

Luzifer / rootzone

rootzone is a small util for my personal-dns project to collect all IANA and OpenNIC TLDs and generate a named stub file for bind to be able to resolve those TLDs without delegation to third-party nameservers which might be modifying the original responses from the root nameservers.

Building

$ go get github.com/Luzifer/rootzone

Usage

$ rootzone --help
Usage of rootzone:
      --concurrency-limit int       How many queries to execute in parallel (default 50)
      --iana-filter strings         IANA TLDs to igore (default [arpa.])
      --iana-tld-list string        IANA TLD list file (default "https://data.iana.org/TLD/tlds-alpha-by-domain.txt")
      --internic-root-file string   Internic root nameserver file (default "https://www.internic.net/domain/named.root")
      --log-level string            Log level (debug, info, warn, error, fatal) (default "info")
      --opennic-filter strings      OpenNIC TLDs to ignore (default [.,opennic.glue.])
      --opennic-root string         OpenNIC root server (default "75.127.96.89")
      --version                     Prints current version and exits
$ rootzone | head -n12
# Autogenerated with rootzone dev
#
zone "aaa." in {
  type static-stub;
  server-addresses { 156.154.144.2; 156.154.145.2; 156.154.156.2; 156.154.157.2; 156.154.158.2; 156.154.159.2; };
};
#
zone "aarp." in {
  type static-stub;
  server-addresses { 192.42.173.30; 192.42.174.30; 192.42.175.30; 192.42.176.30; };
};
#