dns 0.1.3
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? #
- For your first contribution, you should create a pull request.
- Contributors can receive project administrator rights.
- Discuss issues at the Github issue tracker.
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:
dependencies:
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';
Popularity:
Describes how popular the package is relative to other packages.
[more]
|
46
|
Health:
Code health derived from static analysis.
[more]
|
100
|
Maintenance:
Reflects how tidy and up-to-date the package is.
[more]
|
84
|
Overall:
Weighted score of the above.
[more]
|
70
|
We analyzed this package on Dec 9, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.6.1
- pana: 0.13.1+4
Maintenance suggestions
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.
Dependencies
Package | Constraint | Resolved | Available |
---|---|---|---|
Direct dependencies | |||
Dart SDK | >=2.4.0 <3.0.0 | ||
args | ^1.5.2 | 1.5.2 | |
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.4 | |
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.1 | ||
Dev dependencies | |||
pedantic | ^1.8.0 | ||
test | ^1.6.5 |