Git Product home page Git Product logo

Comments (6)

jcostom avatar jcostom commented on August 16, 2024 1

Not really a bug, though I'll certainly grant you the naming convention could certainly be a bit more consistent.

If you check around line 45 of ddnsup.py, you'll find this:

    case 'dnsomatic':
        # Required Vars for DNS-O-Matic
        DOM_USER = os.getenv('DOMUSER')
        DOM_PASSWD = os.getenv('DOMPASSWD')
        DOM_WILDCARD = os.getenv('WILDCARD', 'NOCHG')
        DOM_MX = os.getenv('MX', 'NOCHG')
        DOM_BACKUPMX = os.getenv('BACKUPMX', 'NOCHG')
        # (possibly) redefine RECORDS - If you're using DNS-O-Matic and want to
        # update all services, you don't need to set RECORDS, we'll default to
        # all.dnsomatic.com, which does all your services.
        RECORDS = os.getenv('RECORDS', 'all.dnsomatic.com')

The vars you'd need to set in your environment are DOMUSER, DOMPASSWD, and optionally WILDCARD, MX, BACKUPMX, and RECORDS. Definitely 2 typo's in the example compose file, which I'll definitely commit to fixing. I'll look at some slightly more consistent variable naming, but doing so in a way that's backward compatible, so as not to break existing installs.

from ddnsup.

Tazarok77 avatar Tazarok77 commented on August 16, 2024 1

Noticed. It looked like the DOM_ format was favored, so I went that route. To keep the source unmodified, I did update the yaml like you pointed out.

Saw an earlier commit mentioning plans to deprecate DNS-O-Matic. Hopefully it's decided to keep it. I tried 5 other clients, most broke, some spam updates, etc... Yours has everything going for it.

from ddnsup.

jcostom avatar jcostom commented on August 16, 2024

So, my immediate thought is just to simply introduce these new vars as the "defaults" but keep supporting the old ones. Sort of like this:

DOM_USER = os.getenv('DOM_USER') or os.getenv('DOMUSER')

Thoughts? This would prevent someone using DOMUSER from breaking, while enabling some better normalization of variables.

from ddnsup.

jcostom avatar jcostom commented on August 16, 2024

Hey - I just pushed a dev branch with all the variable normalization stuff. Take a look at the README in the dev branch, and take ghcr.io/jcostom/ddnsup:dev out for a spin. LMK if it's working the way you expect, ok?

from ddnsup.

Tazarok77 avatar Tazarok77 commented on August 16, 2024

I was out of town, just caught up. Great solution; switched to :dev from :latest, used the config from dev, and it worked flawless first try. Awesome!

Side note: Noticed on the dev branch, the configs for dns-made-easy and dns-o-matic are missing ":latest" from the URL. Only an observation in differences; tested, does the same thing either way.

from ddnsup.

jcostom avatar jcostom commented on August 16, 2024

Nice catch. Thanks. I'll update.

from ddnsup.

Related Issues (4)

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.