doh_client 0.1.2

Dart native
Flutter Android iOS

This implementation allows you to send requests to DNS-over-HTTPS services.

doh_client #

A library for connecting to DNS-over-HTTPS (DoH).

Usage #

A simple usage example:

import 'package:doh_client/doh_client.dart';

main() async {
  var dohResponse = await DoH(DoHProvider.google)
      .lookup('google.com', RecordType.A, dnssec: true);
  if (dohResponse != null) {
    dohResponse.answer.forEach((answer) {
      print(answer.data);
    });
  }
}

Licensing #

This project is available under the MIT license, as can be found in the LICENSE file.

1
likes
80
pub points
11%
popularity

Publisher

broject.ru

This implementation allows you to send requests to DNS-over-HTTPS services.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on doh_client