diff --git a/internal/dnslookup/dnslookup.go b/internal/dnslookup/dnslookup.go index 255a704..e54da44 100644 --- a/internal/dnslookup/dnslookup.go +++ b/internal/dnslookup/dnslookup.go @@ -36,6 +36,7 @@ func GetDNSRecords(hostname string) []models.DNSRecord { currentHost = cname } + // check if it is a wildcard if strings.HasPrefix(currentHost, "*.") { randomSubdomain := randomHostname() currentHost = randomSubdomain + hostname[1:]