GithubHelp home page GithubHelp logo

dfernandezm / php-ddns53 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from holgr/php-ddns53

2.0 2.0 0.0 103 KB

A simple PHP script to update Amazon's Route 53 with a new IP

License: MIT License

PHP 98.55% Shell 1.45%

php-ddns53's Introduction

php-ddns53

A simple PHP script to update Amazon's Route 53 with a new public IP.

This is a simple hack to use Route 53 as a dynamic DNS host. This is a version based on Holger Eilhard work.

Usage

It requires Dan Myers's Amazon Route 53 PHP Class to work. A version of this class is provided here.

Fill the details of your AWS account in ddns-change.php

$awsKey = "AWS-KEY";
$awsId = "AWS-ID";
$hostedZoneId = "HOSTED-ZONE-ID";
$hostNameToChangeIp = "HOST-NAME-TO-CHANGE-AS-LISTED";

Put ddns-change.php, Route53DynDns.php and r53.php files in the same folder. For a basic usage just run

php ddns-change.php

If you want to use this as a cron job with output to a log file, a basic utility script is provided for that. Fill the full path of the PHP script (and log file) in ddns-cron.sh

FULL_SCRIPT_PATH=/path/to/script

FULL_LOG_PATH=/path/to/logs
...

Now you can create an entry in crontab with the full path for ddns-cron.sh script or execute

./cron-installer.sh /path/to/ddns-cron.sh "0 0 * * *"

which will install a cron job for the user which will execute the script every day at midnight (change the cron pattern accordingly).

php-ddns53's People

Contributors

holgr avatar dfernandezm avatar

Stargazers

 avatar iYUYUE avatar

Watchers

James Cloos 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.