doh_client 0.1.2 copy "doh_client: ^0.1.2" to clipboard
doh_client: ^0.1.2 copied to clipboard

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

example/main.dart

import 'package:doh_client/doh_client.dart';

main() async {
  // Request to DNS-over-HTTPS service
  var dohResponse = await DoH(DoHProvider.google)
      .lookup('google.com', RecordType.A, dnssec: true);
  // Handle if response not null
  if (dohResponse != null) {
    dohResponse.answer.forEach((answer) {
      print(answer.data);
    });
  }
}
2
likes
40
pub points
0%
popularity

Publisher

verified publisherbroject.ru

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

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

More

Packages that depend on doh_client