Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luzifer/rootzone
Generator for named stub file containing IANA and OpenNIC root zones
https://github.com/luzifer/rootzone
dns generator golang named
Last synced: 17 days ago
JSON representation
Generator for named stub file containing IANA and OpenNIC root zones
- Host: GitHub
- URL: https://github.com/luzifer/rootzone
- Owner: Luzifer
- License: apache-2.0
- Created: 2019-05-25T15:09:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-25T00:16:07.000Z (over 1 year ago)
- Last Synced: 2024-06-20T12:39:13.943Z (5 months ago)
- Topics: dns, generator, golang, named
- Language: Go
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Go Report Card](https://goreportcard.com/badge/github.com/Luzifer/rootzone)](https://goreportcard.com/report/github.com/Luzifer/rootzone)
![](https://badges.fyi/github/license/Luzifer/rootzone)
![](https://badges.fyi/github/downloads/Luzifer/rootzone)
![](https://badges.fyi/github/latest-release/Luzifer/rootzone)# Luzifer / rootzone
`rootzone` is a small util for my [personal-dns](https://github.com/luzifer-docker/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
```console
$ go get github.com/Luzifer/rootzone
```## Usage
```console
$ 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
``````console
$ 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; };
};
#
```