doh 0.0.3+4 doh: ^0.0.3+4 copied to clipboard
doh client to resolve dns, include alidns,google dns and cloudflare
import 'package:doh/doh.dart';
void main() async{
// DoH.instance.provider = [DoHProvider.cloudflare1];
var x = await DoH.instance.lookup(
"www.apple.com",
DohRequestType.A,
attempt: 2,
);
print(json.encode(x).toString());
}