GithubHelp home page GithubHelp logo

Unable to use this plugin about alternate HOT 7 CLOSED

coredns avatar coredns commented on August 15, 2024 1
Unable to use this plugin

from alternate.

Comments (7)

chrisohaver avatar chrisohaver commented on August 15, 2024 2

In what order are forward and alternate plugins listed in your plugin.cfg?

from alternate.

chrisohaver avatar chrisohaver commented on August 15, 2024 2

Same as in README.md: first forward, then alternate.

The readme shows several Corefile examples.... but the Corefile is different than the /plugin.cfg file that you are required to change in CoreDNS when compiling in external plugins, such as this one. A very common mistake is to add external plugins to the end of the list, but plugin.cfg defines execution order of plugins. The order of plugins the Corefile does not matter. If forward is executed before alternate, alternate never processes anything.

from alternate.

isavcic avatar isavcic commented on August 15, 2024

Same here. Compiled against v1.8.0 CoreDNS. Compilation goes okay, but:

. {
        forward . 104.199.179.254
        alternate REFUSED . 1.1.1.1
}

returns REFUSED, but when configuration is changed to forward to 1.1.1.1 (without alternate), the 1.1.1.1 resolver can of course resolve the record; tried with google.com A.

BTW, @OriolOMM you can see the plugin is "running" because CoreDNS doesn't complain there's the keyword alternate.

from alternate.

isavcic avatar isavcic commented on August 15, 2024

I wonder, why didn't the tests catch this?

from alternate.

isavcic avatar isavcic commented on August 15, 2024

Same as in README.md: first forward, then alternate.

from alternate.

isavcic avatar isavcic commented on August 15, 2024

@chrisohaver Wow, thanks! Sorry, I misread, I thought you meant Corefile... Indeed, when I put alternate on top of plugin.cfg and recompiled, it works!

from alternate.

OriolOMM avatar OriolOMM commented on August 15, 2024

Changing the order of the plugin in plugin.cfg worked. Thanks

from alternate.

Related Issues (10)

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.