Giter VIP home page Giter VIP logo

dynamic-dns-update-cdmon's Introduction

dynamic-dns-update-cdmon

Simple script for dynamic dns update for CDMON service. More info: https://support.cdmon.com/entries/24118056-API-de-actualización-de-IP-del-DNS-gratis-dinámico

How to use:

Configure your script options:

$user = 'yourUsername'; //username
$pass = 'yourPassword'; //password
$cip = false; // force new ip here or set to false to auto
$retry_time = 30; // time to retry, on seconds
$retry_attempts = 3; // number of attempts

Run from cli or from your webserver:

php dynamicip.php

To use mail log

Run composer install ( http://getcomposer.org/ ):

composer install

Uncomment require vendor autoload:

require 'vendor/autoload.php';

Set true $mail_log var

$mail_log = true;

Configure your mail options:

$to  = '[email protected]';
$subject = 'Dinamic dns status';
$from = '[email protected]';
$mail_log_success = true;
$mail_log_fail = true;

Configure your smtp settings:

$mail_config['smtp'] = 'smtp.yourdomain.com';
$mail_config['port'] = 25;
$mail_config['username'] = 'smtpUser';
$mail_config['password'] = 'smtpPassword';

Crontab

If you want to run the file from crontab, you can add to crontab a script like dynamicip.sh example, making sure your user have execute permission.

License

Distributed under the MIT license: http://www.opensource.org/licenses/mit-license.php

Copyright (c) Diego Vilariño: http://www.dieg0v.com/ - http://www.sond3.com

dynamic-dns-update-cdmon's People

Contributors

dieg0v avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.