2017 © Pedro Peláez
 

library flaredns-client

Synchronize your App dynamic IP with your CloudFlare DNS A records.

image

thinkingcircles/flaredns-client

Synchronize your App dynamic IP with your CloudFlare DNS A records.

  • Tuesday, July 11, 2017
  • by CarlosGarcia
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

FlareDNS-client

Synchronize your App dynamic IP with your CloudFlare DNS A records., (*1)

Use this package if:, (*2)

  • You use CloudFlare.
  • You run your Laravel App on a server with a Dynamic IP or your IP changes often.

Installation

composer require thinkingcircles/flaredns-client

// config/app.php

'providers' => [
    // Other service providers...    
    ThinkingCircles\FlareDNSClient\FlareDNSClientServiceProvider::class,
]

php artisan vendor:publish --provider="ThinkingCircles\FlareDNSClient\FlareDNSClientServiceProvider"

Get CloudFlare api keys

Configuration

// .env

cloudflare_zone_id=
cloudflare_global_api_key=
cloudflare_api_email=

:or, (*3)

// config/flaredns-client.php

<?php return [

    'cloudflare_api_account' => [
        'cloudflare_zone_id' => 'ZONE-ID',
        'cloudflare_global_api_key' => 'API-KEY',
        'cloudflare_api_email' => 'API-EMAIL',
        'dns_records' => [
            //will match id or name
            ['id'=>null, 'name'=>'domain.net'],
            ['id'=>'CloudFlare-API-Record-ID', 'name'=>null]
        ]
    ]

];

Cron Setup - Laravel 5.4 - Scheduling

// Cron if you have not setup already

* * * * * php /path-to-your-project/artisan schedule:run >> /dev/null 2>&1

Usage

// App/Console/Kernel.php

protected function schedule(Schedule $schedule)
{
    $schedule->command('flarednsclient:ipsync')->everyFiveMinutes();
}

Todo

The Versions

11/07 2017

dev-master

9999999-dev https://github.com/ThinkingCircles/FlareDNS-client

Synchronize your App dynamic IP with your CloudFlare DNS A records.

  Sources   Download

MIT

The Requires

 

The Development Requires

cloudflare dns dynamic ip thinkingcircles flaredns-client

08/07 2017

1.0.2

1.0.2.0 https://github.com/ThinkingCircles/FlareDNS-client

CloudFlare auto dns update

  Sources   Download

MIT

The Requires

 

The Development Requires

cloudflare dns dynamic ip thinkingcircles flaredns-client