ddns_client 1.0.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 45

ddns_client.dart

A Dart library for checking the public internet address and updating a dynamic dns entry.

pub package Build Status Coverage Status

Overview

  • PublicAddressMonitor provides functionality for both a one time check of the public internet address and continuous (periodic) monitoring of the public internet address.

  • DynamicDnsUpdater and its subclasses provide functionality for updating a dynamic dns entry such as those at dyndns.org

Example

A simple example for monitoring an internet address and updating a dyndns.org entry is provided as part of this package.

Monitoring a public internet address:

var monitor = new PublicAddressMonitor();
monitor.startWatching().listen((PublicAddressEvent event) {
  if (event.oldAddress != null &&
      event.oldAddress != event.newAddress) {
    // process changed internet address here
  }
});

Updating a dyndns.org entry:

Dyndns2Updater updater = new Dyndns2Updater(
  username: yourUsername,
  password: yourPassword,
  hostname: yourHostname);
updater.update(newAddress).then((UpdateResult result) {
  if (result.success == true) {
    // success
  } else if (result.success == null) {
    // no change
  } else {
    // failed to update dynamic dns entry
  }
});

1.0.0

  • widened dependency versions

0.8.2

  • Added additional ip addresses used for checking the local IP address
  • Added request timeout and enhanced response processing guard code
  • Added GoogleDomainUpdater for updating dynamic DNS records in Google Domains

0.8.1

  • Rename repo to danrubel/ddns_client.dart

0.8.0

  • Initial Version

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  ddns_client: "^1.0.0"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:ddns_client/ddns_updater.dart';

import 'package:ddns_client/public_address.dart';
        
Version Uploaded Documentation Archive
1.0.0 Sep 10, 2016 Go to the documentation of ddns_client 1.0.0 Download ddns_client 1.0.0 archive
0.8.2 Jan 2, 2016 Go to the documentation of ddns_client 0.8.2 Download ddns_client 0.8.2 archive
0.8.1 Jun 23, 2015 Go to the documentation of ddns_client 0.8.1 Download ddns_client 0.8.1 archive
0.8.0 Mar 2, 2015 Go to the documentation of ddns_client 0.8.0 Download ddns_client 0.8.0 archive

Analysis

This feature is new.
We welcome feedback.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Dec 6, 2017
  • Dart: 2.0.0-dev.8.0
  • pana: 0.7.3+1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
76
Overall score:
Weighted score of the above. [more]
45

Platforms

Detected platforms: Flutter, server

all of the above

Dependencies

Package Constraint Resolved Available
Direct dependencies
logging >=0.9.1 <0.12.0 0.11.3+1
Dev dependencies
grinder >=0.7.0 <0.9.0
test >=0.12.0 <0.13.0