Code Monkey home page Code Monkey logo

nxdomain's Introduction

nxdomain

Name

nxdomain - shortcut domain resolution by returning NXDOMAIN directly.

Description

nxdomain takes a list of domains and immediately returns NXDOMAIN for any name under them instead of taking the long road of trying to resolve them.

Syntax

nxdomain [ZONE]...

Examples

NXDOMAIN everything in the .com zone:

com {
    nxdomain
    whoami
}

NXDOMAIN everything (might be a bad idea):

. {
    nxdomain
    whoami
}

Bugs

The list of zones is just a slice that is traversed, meaning this plugin will get slow when a lof of names are to be shortcut.

nxdomain's People

Contributors

miekg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mariusgrigoriu

nxdomain's Issues

Merge into CoreDNS?

I'd like to advocate for this plugin to be included in the main CoreDNS plugins. It's extremely useful to be able to NXDOMAIN calls for zones that you're authoritative for, once they exhaust all other plugins, rather than SERVFAIL anything that wasn't explicitly covered by a plugin.

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.