mirror of
https://github.com/anotherhadi/iknowyou.git
synced 2026-05-20 17:22:33 +02:00
Improve docs, responsive, add Material Icons
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -13,7 +13,7 @@ const (
|
||||
name = "dig"
|
||||
description = "DNS lookup querying A, AAAA, MX, NS, TXT, and SOA records for a domain, or reverse DNS (PTR) for an IP."
|
||||
link = "https://linux.die.net/man/1/dig"
|
||||
icon = ""
|
||||
icon = "mdi:dns"
|
||||
)
|
||||
|
||||
var recordTypes = []string{"A", "AAAA", "MX", "NS", "TXT", "SOA"}
|
||||
@@ -67,7 +67,13 @@ func (r *Runner) Run(ctx context.Context, target string, inputType tools.InputTy
|
||||
break
|
||||
}
|
||||
cmd := exec.CommandContext(ctx, "dig", target, rtype, "+noall", "+answer")
|
||||
output, _ := cmd.Output()
|
||||
output, err := cmd.Output()
|
||||
if err != nil {
|
||||
if ctx.Err() != nil {
|
||||
break
|
||||
}
|
||||
continue
|
||||
}
|
||||
result := strings.TrimSpace(string(output))
|
||||
if result == "" {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user