ddns_client 1.0.0

  • README.md
  • Installing
  • Versions
  • 34


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

pub package Build Status Coverage Status


  • 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


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


  • widened dependency versions


  • 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


  • Rename repo to danrubel/ddns_client.dart


  • Initial Version

Use this package as a library

1. Depend on it

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

  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 flutter 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


We analyzed this package on Jun 19, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
0 / 100
Code health derived from static analysis. [more]
98 / 100
Reflects how tidy and up-to-date the package is. [more]
23 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, other

Platform components identified in package: io.


  • Package is getting outdated.

    The package was released 92 weeks ago.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 11 hints.

    Run dartfmt to format lib/ddns_updater.dart.

    Run dartfmt to format lib/mock/mock_ddns_updater.dart.

    Similar analysis of the following files failed:

    • lib/mock/mock_public_address.dart (hint)
    • lib/public_address.dart (hint)
  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use ddns_client.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.0.0 <2.0.0
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