dns 0.1.3

  • Readme
  • Changelog
  • Example
  • Installing
  • 75

Introduction #

Implements DNS protocol (over UDP) and modern DNS-over-HTTP.

The package uses package:universal_io, which means that you can use it all platforms.

Licensed under the Apache License 2.0.

IMPORTANT: This is an early release that has known bugs.

Issues? Contributing? #

0.1.3 #

  • Updated dependencies


import 'package:dns/dns.dart';
import 'dart:async';

Future<void> main(List<String> args) async {
  for (var arg in args) {
    final client = HttpDnsClient.google();
    final result = await client.lookup("google.com");
    print("$arg --> ${result.join(' | ')}");

Use this package as an executable

1. Install it

You can install the package from the command line:

$ pub global activate dns

2. Use it

The package has the following executables:

$ dns-proxy

Use this package as a library

1. Depend on it

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

  dns: ^0.1.3

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

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

3. Import it

Now in your Dart code, you can use:

import 'package:dns/dns.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Apr 4, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Maintenance issues and suggestions

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (universal_io).

The package description is too short. (-16 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.4.0 <3.0.0
args ^1.5.2 1.6.0
ip ^0.1.1 0.1.1
meta ^1.1.7 1.1.8
raw ^0.2.0 0.2.0
universal_io >=0.7.0 <0.9.0 0.8.6 1.0.1
Transitive dependencies
collection 1.14.12
fixnum 0.10.11
matcher 0.12.6
path 1.6.4
stack_trace 1.9.3
zone_local 0.1.2
Dev dependencies
pedantic ^1.8.0
test ^1.6.5