SkillAgentSearch skills...

Zonebuild

Generate DNS zones from dn42 registry data

Install / Use

/learn @nixnodes/Zonebuild
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

zonebuild

  • Generate DNS zones from dn42 registry files

Installation

  • Prepare:

    apt-get update
    apt-get install bind9 monotone git python3
    cd /etc/bind
    
  • Clone:

    git clone git://github.com/nixnodes/zonebuild.git
    
  • Compile and install zbuild:

cd zonebuild
make clean
./configure
sudo make install
  • Configure:

    vi scripts/config.user

    REGISTRY_BASE_PATH=/etc/bind
    REGISTRY_PATH=${REGISTRY_BASE_PATH}/net.dn42.registry/data
    OUT_PATH=/etc/bind
    
    • Data is written in $OUT_PATH/<tier[0-2]|res|ipv6>/
    • Registry repo will be created in $REGISTRY_BASE_PATH

    Default settings are stored inscripts/config, all changes should be put in scripts/config.user

Run:

Execute with absolute path:

  • Build reverse and forward tier1 and tier2 zones, self update before running:

    /etc/bind/zonebuild/scripts/run.sh arpa zone -update

    • include "$REGISTRY_BASE_PATH/tier<1|2>/named.conf";
  • Build root zones (<a-z>.root-servers.dn42):

    /etc/bind/zonebuild/scripts/run.sh root -update

    • include "$REGISTRY_BASE_PATH/tier0/named.conf";
  • Build resolver files:

    /etc/bind/zonebuild/scripts/run.sh res -update

    • include "$REGISTRY_BASE_PATH/res/named.conf";
    • NOTE you have to restart your bind the first time you include this configuration, after running rndc reload the new root hints will not be used.

Related Skills

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated7y ago
Forks5

Languages

C

Security Score

70/100

Audited on Nov 30, 2018

No findings