2017 © Pedro Peláez
 

library dns-updatr

Library to update DNS based on current IP address

image

corycollier/dns-updatr

Library to update DNS based on current IP address

  • Saturday, May 13, 2017
  • by corycollier
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

DnsUpdatr

Build Status, (*1)

This code serves as a way to allow for dynamic dns updating., (*2)

Usage

<?php
require 'vendor/autoload.php';

use DnsUpdatr\Fetcher;
use DnsUpdatr\Updater;

$token   = 'token-value' // @see https://cloud.digitalocean.com/settings/api/tokens;
$fetcher = new Fetcher();
$ip      = $fetcher->getIpAddress();

$updater = new Updater([
    'adapter' => 'digital-ocean',
    'options' => [
        'token' => $token,
    ]
]);

if ($ip) {
    $updater->init();
    $updater->update('testing', 'example.com', $ip);
}

Using crontab, an entry to check every 5 minutes for the IP address, and update if necessary might be, (*3)

*/5 * * * * /usr/local/bin/php /path/to/sample.php > /dev/null 2>&1

The Versions

13/05 2017

dev-master

9999999-dev

Library to update DNS based on current IP address

  Sources   Download

MIT

The Requires

 

The Development Requires

13/05 2017

0.4.0

0.4.0.0

Library to update DNS based on current IP address

  Sources   Download

MIT

The Requires

 

The Development Requires

13/05 2017

dev-develop

dev-develop

Library to update DNS based on current IP address

  Sources   Download

MIT

The Requires

 

The Development Requires

13/05 2017

0.3.1

0.3.1.0

Library to update DNS based on current IP address

  Sources   Download

MIT

The Requires

 

The Development Requires

13/05 2017

0.3.0

0.3.0.0

Library to update DNS based on current IP address

  Sources   Download

MIT

The Requires

 

The Development Requires

24/04 2017

0.2.0

0.2.0.0

Library to update DNS based on current IP address

  Sources   Download

MIT

The Requires

 

The Development Requires

24/04 2017

0.1.0

0.1.0.0

Library to update DNS based on current IP address

  Sources   Download

MIT

The Requires

 

The Development Requires