AAAAAAAAA

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2022-12-06 22:52:34 +01:00 committed by Gitea
parent 1a6819a98f
commit 9bd06d0509

View file

@ -98,7 +98,11 @@ func run(args []string) (opts *util.Options, code int, err error) {
https://pkg.go.dev/github.com/miekg/dns@v1.1.50
*/
_ = resp.DNS.Answer[r.Intn(len(resp.DNS.Answer))]
if opts.Request.Name == "." {
opts.Request.Server = resp.DNS.Answer[r.Intn(len(resp.DNS.Answer))].Header().Name
} else {
opts.Request.Server = resp.DNS.Answer[r.Intn(len(resp.DNS.Ns))].Header().Name
}
opts.TLS = false
opts.HTTPS = false