GithubHelp home page GithubHelp logo

Comments (9)

echobops avatar echobops commented on August 30, 2024 1

Ah, I see what you're saying. Well, it works now, so I must have pulled 0.2.0 and updated my config which got it to work.

Pulling from master shows that Im' using v0.2.0.

        github.com/oz123/coredns-netbox-plugin v0.2.0

Line 28 of setup.go (on master and tagged 0.2.0) is still reporting as 0.1.1-dev:

var VERSION = "0.1.1-dev"

Thanks!

from coredns-netbox-plugin.

oz123 avatar oz123 commented on August 30, 2024

Are you using the latest version from master or a tagged version?

from coredns-netbox-plugin.

echobops avatar echobops commented on August 30, 2024

I'm using whatever the coredns plugins page shows: netbox:github.com/oz123/coredns-netbox-plugin So I'm assuming master?

from coredns-netbox-plugin.

oz123 avatar oz123 commented on August 30, 2024

The master branch has many changes, and it contains a working Core file example. Can you check it?
If that does not work, please pin for version 0.2 .

from coredns-netbox-plugin.

echobops avatar echobops commented on August 30, 2024

Hmm, I'm not sure what I did, but it started working after I let it sit for a few days (likely after a few Corefile revisions). Apparently version 0.1.1-dev was pulled when I compiled coredns. Seems like I should probably upgrade it to 0.2? Since these are pulled on compile of coredns, how do I force a version?

from coredns-netbox-plugin.

echobops avatar echobops commented on August 30, 2024

Hmm, I pulled 0.2.0 with:

go get github.com/oz123/[email protected]

Which seemed to have downloaded it, but when running coredns, it still says using 0.1.1-dev.

from coredns-netbox-plugin.

echobops avatar echobops commented on August 30, 2024

Ah. The 0.2.0 branch still reports version 0.1.1:

var VERSION = "0.1.1-dev" in setup.go. I think I am using 0.2.0; its just reporting 0.1.1

from coredns-netbox-plugin.

oz123 avatar oz123 commented on August 30, 2024

What did you put in your configuration for building? plugin.cfg?

from coredns-netbox-plugin.

oz123 avatar oz123 commented on August 30, 2024

Just to make it clear, you say you have this in the config:

netbox:github.com/oz123/coredns-netbox-plugin

That is, using the master branch, where the configuration format is new. If you want to use the older version, you should pin the version:
You can do it by either linking to a specify tag in you local code, or by modifying go.mod:

This is inside the coredns sources

diff --git a/go.mod b/go.mod
index 03cf2f0f2..46435f734 100644
--- a/go.mod
+++ b/go.mod
@@ -23,6 +23,7 @@ require (
        github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5
        github.com/openzipkin/zipkin-go v0.3.0
        github.com/oschwald/geoip2-golang v1.5.0
+       github.com/oz123/coredns-netbox-plugin v0.1.1
        github.com/philhofer/fwd v1.1.1 // indirect
        github.com/prometheus/client_golang v1.11.0
        github.com/prometheus/client_model v0.2.0
diff --git a/go.sum b/go.sum
index 322163ae7..bd3bb6a0c 100644

If you don't pin it, take a look at the documentation for the configuration format.

from coredns-netbox-plugin.

Related Issues (20)

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.