query command added

This commit is contained in:
MDK
2023-10-21 18:53:38 +08:00
parent 4c63d78e4e
commit eb65009ae2
6 changed files with 128 additions and 28 deletions

View File

@@ -27,7 +27,7 @@ func RecursiveCacheProbe(ip string, sld string) CacheStruct {
}
subdomain := strings.Join([]string{strings.Replace(ip, ".", "-", -1), "fwd", strconv.Itoa(i), time_now}, "-")
domain := dns.Fqdn(subdomain + "." + sld)
res, err := utils.SendQuery(ip, domain)
res, err := utils.SendAQuery(ip, domain)
if err != nil {
//fmt.Printf("Error sending query: %s\n", err)
stop += 1

View File

@@ -26,7 +26,7 @@ func active_probe(n int, addr string) RecursiveStruct {
for i := 0; i < n; i++ {
subdomain := strings.Join([]string{strings.Replace(target_ip, ".", "-", -1), "echo", strconv.Itoa(i), timestamp}, "-")
domain := dns.Fqdn(subdomain + ".echodns.xyz")
res, err := utils.SendQuery(addr, domain)
res, err := utils.SendAQuery(addr, domain)
if err != nil {
stop += 1
continue