Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.02 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.02 KB

Dart implementation of DNS-over-HTTPS.

CodeFactor pub.dev license

Usage

A simple usage example:

import 'package:dns_client/dns_client.dart';

main() async {
  final dns = DnsOverHttps.google();
  var response = await dns.lookup('google.com');
  response.forEach((address) {
    print(address.toString());
  });}
import 'package:dns_client/dns_client.dart';

main() async {
  final dns = DnsOverHttps.cloudflare();
  var response = await dns.lookup('google.com');
  response.forEach((address) {
    print(address.toString());
  });}

Features and bugs

Please file feature requests and bugs at the issue tracker.