Skip to content

A coredns plugin that returns a SERVFAIL with the Authoritative and RecursionAvailable flags set.

License

Notifications You must be signed in to change notification settings

nicelocal/servfail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

servfail

A coredns plugin that returns a SERVFAIL with the Authoritative and RecursionAvailable flags set.

Usage:

Add the following to plugins.cfg, before debug:

servfail:github.com/nicelocal/servfail

And use the following example Corefile:

. {
    servfail
}

Example dockerfile:

FROM golang

RUN git clone -b v1.12.0 --depth 1 https://github.com/coredns/coredns /coredns && \
    cd /coredns && \
    sed '/bind:bind/a servfail:github.com/nicelocal/servfail' plugin.cfg -i && \
    make

FROM scratch

COPY --from=0 /coredns/coredns /coredns

ENTRYPOINT ["/coredns"]

About

A coredns plugin that returns a SERVFAIL with the Authoritative and RecursionAvailable flags set.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages