Coder Social home page Coder Social logo

dnsimple / coredns-dnsimple Goto Github PK

View Code? Open in Web Editor NEW
4.0 8.0 0.0 144 KB

A DNSimple plugin for CoreDNS.

License: MIT License

Go 94.21% Makefile 5.79%
coredns dnsimple coredns-dnsimple-plugin dnsimple-policy-eng dnsimple-policy-lang-golang dnsimple-api dnsimple-policy-triage-platform

coredns-dnsimple's People

Contributors

ags4no avatar dependabot[bot] avatar dxtimer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coredns-dnsimple's Issues

NAPTR formatting failure

What is the problem?

NAPTR records provided via the DNSimple app should be considered valid.

Steps to reproduce

  1. Create a NAPTR record with 100 10 "U" "E2U+sip" "!^.*$!sip:[email protected]!"
  2. Expect to see an error showing the following:
[ERROR] plugin/dnsimple: failed to parse resource record: dns: bad NAPTR Replacement: " " at line: 1:28

Provide workaround for self-bootstrapping

Currently, if CoreDNS is used as the system resolver, it will fail to start, since it will be unable to make the DNS lookup to call the DNSimple API on setup because the system resolver is set to itself, but it isn't responding yet.

A temporary workaround is to change the system resolver to something else first, start CoreDNS, then change the system resolver back. However, this only lasts until CoreDNS restarts.

Ideally, we should not block CoreDNS from starting, and delay API calls until our first fetch. This way, any forward/fallback/alternate plugins can start serving those DNS queries while our plugin is starting.

Warn when required environment variables are missing

Currently, if DNSIMPLE_TOKEN and/or DNSIMPLE_ACCOUNT_ID are not provided, we simply silently proceed, which will lead to less friendly errors around API failures. We should instead check that these exist and fail if they haven't been provided in the config or env vars.

ALIAS records with bad resolution during zone sync fail to be added to the zone

What is the problem?

When an ALIAS record is being loaded and we fail to resolve the ALIAS record we log it as an error and do not add it to the zone file. We also send the error to the DNSimple APP flagging the sync as failed.

Steps to reproduce

  1. Create an ALIAS record with a bad target e.g. odjasouhdisghcvdsyv984u3roi23jkjvcndcv08i23.com.
  2. Sporadically syncs will be reported as failed and will see the following in the app:
    image

Optionally allow disabling status updates

For advanced users who don't need or want the automatic status updates, it should be possible to turn off the feature if requested. For example, they may already have their own logging, monitoring, and alerting set up, and would prefer not to duplicate such functionality.

Use exponential backoff for updates

If an update fails, we should delay the next update exponentially, as otherwise we'll repeatedly perform updates on a fixed interval while the network or service is degraded. Additionally, we should also not wait too long after the first failure, as the issue may be ephemeral and we should not persist a degraded or stale state.

SRV record processing error

What is the problem?

SRV records should work.

Steps to reproduce

  1. Create an SRV record in the DNSimple App.
  2. Expect to see an error:
[ERROR] plugin/dnsimple: failed to parse resource record: dns: bad SRV Port: "server.pros-at.work" at line: 1:67
[ERROR] plugin/dnsimple: failed to parse resource record: dns: bad SRV Port: "tko.pros-at.work" at line: 1:60

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.