Giter Site home page Giter Site logo

cpanel-dynamicdns-tools's Introduction

cPanel Dynamic DNS Tools

Overview

This script can be run on most modern Unix and Linux systems to use a cPanel & WHM server as a dynamic DNS provider.

License

This script is licensed under the Apache License, version 2.0. See the LICENSE file for more details.

cpanel-dynamicdns-tools's People

Contributors

bdraco avatar colmelvin avatar sfbee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cpanel-dynamicdns-tools's Issues

Does this still work?

This recently stopped working for me and that may have coincided with my hosting provider updating cpanel.

It looks like this might use the old cPanel Simple zone editor which is deprecated in recent version.

@ColMelvin @sfbee @bdraco @bk2204 ?

This is an incredibly useful tool I'll be lost without,

config file

could you include in the readme and example of how to write a config file. i have multiple computers connected by different providers and each needs its own script. Inserting the specifics of the connection in each is not effective but I could not see how to write a config file.
Thank you for the nice and well working tool!
andrew

Uses deprecated XML API serialization

The XML serialization of the cPanel API is deprecated and will be removed in cPanel & WHM version 74. We should update this script so that it uses the JSON serialization instead.

We can use Perl (checking for /usr/local/cpanel/3rdparty/bin/perl, /usr/bin/perl, and /usr/local/bin/perl) and JSON::PP to parse out the parts of the API response we want, since JSON::PP is part of core Perl since 5.13.9.

Not an ARRAY reference

Hello:

I'm running the script like this:

bash ./cpanel-dynamic-dns.sh   

I managed to connect using the script to the remote cpanel instance — at least is not giving me an access denied— and am getting this error:

Fetching zone for XXX.com....Not an ARRAY reference at -e line 3, <> chunk 1.
Not an ARRAY reference at -e line 3, <> chunk 1.
Request failed with error: Unknown Error (Please make sure you have the zoneedit, or simplezone edit permission on your account.)

Do you have any pointers on how to solve this issue? I'm connecting to the server using the normal cpanel http address in the configuration, my login and password.

Works on FreeBSD also

Hi,

First, awesome script.

Second, this is not an issue, but just to confirm that the script works on FreeBSD 9.x, 10.x and 11.x, you only have to set the interpreter to #!/usr/local/bin/bash instead of the linux bash symlink to sh (or use the bash ENV variable).

Keep up the great work!

errors No such file or directory or unexpected operator

Theres is something weird going on with the first line, if i leave as standard i get lots and lots of "unexpected operator" errors

./cpanel-dynamic-dns.sh: 351: [: 0: unexpected operator
./cpanel-dynamic-dns.sh: 354: [: 0: unexpected operator
./cpanel-dynamic-dns.sh: 351: [: 0: unexpected operator
./cpanel-dynamic-dns.sh: 354: [: 0: unexpected operator
./cpanel-dynamic-dns.sh: 360: [: unexpected operator
Request failed with error: ()
./cpanel-dynamic-dns.sh: 386: [: [email protected]: unexpected operator
skipping notification because a notication was sent 268 seconds ago.

if i remove the first # (hash charecter) i get the the following error (even in Quiet mode) but everything else works nicely

./cpanel-dynamic-dns.sh: line 1: !/bin/sh: No such file or directory

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.