Giter VIP home page Giter VIP logo

nsdgenzone's Introduction

nsdgenzone

This is a project to generate test zones for NSD.

Usage

usage: nsdgenzone.py [-h] --zones ZONES --domainname DOMAINNAME --ipaddress \
                     IPADDRESS --zonesdir ZONESDIR --configfile CONFIGFILE \
                     --queryfile QUERYFILE

options:
  -h, --help            show this help message and exit
  --zones ZONES         Number of zones.
  --domainname DOMAINNAME
                        Domain name.
  --ipaddress IPADDRESS
                        IP address of name server.
  --zonesdir ZONESDIR   Directory of zones directory.
  --configfile CONFIGFILE
                        The configuration file for the NSD zone clause to be created.
  --queryfile QUERYFILE
                        The data file to be created, used for dnsperf queries.

For example,

nsdgenzone --zones 1000000 --domainname test. --ipaddress 192.0.2.53 \
    --zonesdir /etc/nsd/zones --configfile /etc/nsd/nsd.conf.d/zones.conf \
    --queryfile querydata.txt

TIPS

systemd

If NSD startup times out in systemd, increase the TimeoutStartSec value as follows:

$ sudo systemctl edit nsd.service 
[Service]
TimeoutStartSec=600

NSD

/etc/nsd/nsd.conf.d/server.conf

server:
        interface: 192.0.2.53
        port: 53

Unbound

/etc/unbound/unbound.conf.d/test.conf

server:
        local-zone: test. nodefault

stub-zone:
        name: test.
        stub-addr: 192.0.2.53@53

nsdgenzone's People

Contributors

ttkzw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.