0 purchases
dns client
Dart implementation of DNS-over-HTTPS.
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());
});}
copied to clipboard
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());
});}
copied to clipboard
Features and bugs #
Please file feature requests and bugs at the issue tracker.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.