Git Product home page Git Product logo

schlund-ddns's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

schlund-ddns's Issues

add config file option instead of parsing cmd line args

FIXME: Please don't take password from cmd line arg (ps/ proc/ history vulnerability).
better: ~/.schlund-ddns with config && parse args for rest / adjustments.

Also: small typo in readme. Should probably be "schlund-ddns --help" instead of "ddns-update --help" under Usage section.

Sorry for not providing a pull request, i've looked at a quick fix for passing PASS via config file but this uses gocept.logging.ArgumentParser() that I'm not familiar with.

Thanks for the handy schlund-ddns updater!

--quiet --verbose does not work or what is the difference?

root@raspberrypi:~# schlund-ddns --quiet --config /etc/schlund-ddns.conf lan.mydomain.com 154.123.12.1
Zone wurde erfolgreich auf dem Nameserver aktualisiert.

root@raspberrypi:~# schlund-ddns --verbose --config /etc/schlund-ddns.conf lan.mydomain.com 154.123.12.1
Zone wurde erfolgreich auf dem Nameserver aktualisiert.

root@raspberrypi:~# schlund-ddns --config /etc/schlund-ddns.conf lan.mydomain.com 154.123.12.1
Zone wurde erfolgreich auf dem Nameserver aktualisiert.

Fix zone requests with a.b.c.example.tld type domains

Problem:

host and domain are split at first occurence of splt_char in update.py resulting in a wrong zone domain for sub-levelled subdomains (e.g. a.b.example.tld is split in "a","b.example.tld", therefore an error is raised because of zone not found).

proposed quick fix:

$ diff /usr/local/lib/python3.7/site-packages/ws/ddns/update.py ./update.py 
60c60,62
<         host, domain = hostname.split('.', 1)
---
>         tmp = hostname.split('.')
>         domain = '.'.join(tmp[2:])
>         host = hostname.replace('.'+domain,'')

there will be a cleaner fix for this I guess, which is why i don't submit a pull request.

Again, thank you for creating the great package!

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.