ddns_client 1.0.0

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: 

2. Install it

You can install packages from the command line:

$ pub get

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

About

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

Author

Email danrubel@google.com Dan Rubel

Homepage

github.com/danrubel/ddns_client.dart

Documentation

www.dartdocs.org/documentation/ddns_client/1.0.0/

Source code (hyperlinked)

www.crossdart.info/p/ddns_client/1.0.0/

Uploader

danrubel@google.com

Share