dnsolve 1.0.0 copy "dnsolve: ^1.0.0" to clipboard
dnsolve: ^1.0.0 copied to clipboard

Pure Dart library that provides an easy way to perform DNS lookups

example/main.dart

import 'dart:developer';

import 'package:dnsolve/dnsolve.dart';

Future<void> main() async {
  final dnsolve = DNSolve();
  final response = await dnsolve.lookup(
    '_xmpp._tcp.vsevex.me',
    dnsSec: true,
    type: RecordType.srv,
  );

  if (response.answer!.records != null) {
    for (final record in response.answer!.records!) {
      log(record.toBind);
    }
  }
}
1
likes
150
points
772
downloads

Publisher

verified publishervsevex.me

Weekly Downloads

Pure Dart library that provides an easy way to perform DNS lookups

Repository (GitHub)
View/report issues

Topics

#network #http #dns

Documentation

API reference

License

MIT (license)

Dependencies

http

More

Packages that depend on dnsolve