Fast Use of DNS Resolvers
Designed to support DNS brute-forcing with a minimal number of network connections.
go get -v -u github.com/caffix/resolve
Usage
The Resolver
type from this package represents a DNS resolver or group of resolvers that support two primary actions: DNS queries and wildcard detection. Requests made to the same Resolver are performed asynchronously at the rate provided to the constructor of queries per second. DNS queries returning responses indicating success can then be checked for wildcards using the built-in detection.
r := resolve.NewBaseResolver("8.8.8.8", 10, nil)
msg := resolve.QueryMsg("mail.google.com", 1)
resp, err := r.Query(context.TODO(), msg, resolve.PriorityNormal, nil)
if err != nil {
return
}
if r.WildcardType(context.TODO(), resp, "google.com") != resolve.WildcardTypeNone {
return
}
This program is free software: you can redistribute it and/or modify it under the terms of the Apache license.