Giter Site home page Giter Site logo

coredns-deleg's Introduction

deleg

Name

deleg - Implements the DELEG record

Description

deleg implements the DELEG record. See draft-dnsop-deleg for details.

Syntax

For each Server Block, create a deleg block with the list of zones it handles and the responses to add for those delegations:

deleg zone1 zone2 {
    responses "example.org. 3600 IN TXT some text"
}

deleg zone3 {
  responses "example.org. 3600 IN TXT zone3 text"
}

NOTE: the owner of the deleg response will be overridden. This syntax is currently used for its simplcity.

Examples

In this example, we will serve the root zone and add records for the com and org delegations.

First, get a copy of the root zone:

dig axfr . @xfr.dns.icann.org > rootzone

set your Corefile as below

. {
  file rootzone
  deleg com org  {
    responses "example.org. 3600 IN TXT \"this is an example\"" "example.com. 3600 IN TXT this is an another example"
  }
  deleg net {
    responses "example.org.  86400  IN DELEG  1 ns1.example.com. ( ipv4hint=192.0.2.1 ipv6hint=2001:DB8::1 )"
  }
}

Start coredns:

./coredns -conf Corefile -dns.port 1053

and test:

dig @corednsserverip -p 1053 foo.org foo.net +noall +auth

Enabling the plugin

Add the deleg to the list of CoreDNS plugin, right after dnssec:

diff --git a/plugin.cfg b/plugin.cfg
index 532c3dda5..d400b99f4 100644
--- a/plugin.cfg
+++ b/plugin.cfg
@@ -49,6 +49,7 @@ cache:cache
 rewrite:rewrite
 header:header
 dnssec:dnssec
+deleg:github.com/chantra/coredns-deleg
 autopath:autopath
 minimal:minimal
 template:template

See Also

draft-dnsop-deleg.

coredns-deleg's People

Contributors

chantra 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.