dns-and-whois-tools
Skill2 starsChanged 6 months agoMITView on GitHub
DNS lookup, WHOIS, passive-DNS history, IP reputation, and subdomain enumeration procedures. Auto-load when nslookup / dig / whois / host is mentioned, when investigating DNS records (A, NS, MX, CNAME, TXT), when researching historical nameservers, when checking IP reputation (AbuseIPDB, ipinfo.io), when enumerating subdomains (HackerTarget, crt.sh, SecurityTrails), or when reasoning about registrar vs hosting provider.
- Reads credentials
In this repository30 other files it gives its agents.
- adr-spec-gateSkill
- agent-continuity-loopSkill
- agent-flywheelSkill
- agent-runtime-paritySkill
- business-guardrailsSkill
- compact-instructionsSkill
- debug-protocolSkill
- docs-as-codeSkill
- engineering-standardsSkill
- excellence-no-intermediatesSkill
- git-pr-rulesSkill
- hooks-for-enforcementSkill
- hooks-multi-tool-paritySkill
- iac-first-commitSkill
- impact-metrics-gateSkill
- large-payload-completenessSkill
- ledger-auto-updatesSkill
- llm-model-selectionSkill
- local-service-autostartSkill
- multi-phase-sessionSkill
- new-projectSkill
- notion-apiSkill
- notion-batch-patternSkill
- observability-when-to-addSkill
- permanent-learning-protocolSkill
- progress-md-businessSkill
- reactive-integration-designSkill
- secure-secret-inputSkill
- tokens-taxonomySkill
- version-bump-rulesSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Use these when "what nameservers did this domain use before migrating?" or "what DNS records existed historically?" matters.
- Very specific: line 67
If ABUSEIPDB_API_KEY is not set in the current shell, retrieve it securely and export it for the session (export ABUSEIPDB_API_KEY=...
- Very specific: line 75
Start with SecurityTrails: https://securitytrails.com/domain/DOMAIN/dns — shows NS history and A-record history with timestamps.
- Very specific: line 109
Start with SecurityTrails: https://securitytrails.com/domain/DOMAIN/dns
- Distinctive: line 110
If not available, try WhoisFreaks or ViewDNS.info.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
DNS & WHOIS Tools
Investigation toolkit for DNS, WHOIS, IP reputation, and passive-DNS work. Applies to any domain or IP across public internet domains.
DNS lookup — preferred order
wsl dig— fullest output, supports+short,+noall +answer,ANY,AXFR, etc.- Google DNS API —
curl -s "https://dns.google/resolve?name=DOMAIN&type=A"— works from any shell, returns JSON. nslookup— works but some local resolvers may return "No response from server". Use only when 1 and 2 are unavailable.
Current DNS records
# A / NS / MX / CNAME / TXT via Google DNS-over-HTTPS
curl -s "https://dns.google/resolve?name=DOMAIN&type=A|NS|MX|CNAME|TXT"
# Indexed subdomains (HackerTarget)
curl -s "https://api.hackertarget.com/hostsearch/?q=DOMAIN"Historical / passive DNS
Use these when "what nameservers did this domain use before migrating?" or "what DNS records existed historically?" matters. They reveal records that no longer resolve.
- crt.sh (Certificate Transparency):
curl -s "https://crt.sh/?q=%.DOMAIN&output=json"— reveals subdomains that ever had SSL issued (indirect evidence they existed). - SecurityTrails —
https://securitytrails.com/domain/DOMAIN/dns(WebFetch; may require account). - WhoisFreaks —
https://whoisfreaks.com/tools/dns/history/lookup/DOMAIN(WebFetch). - DNSHistory.org —
https://dnshistory.org/dns-records/DOMAIN(WebFetch). - ViewDNS.info —
https://viewdns.info/history/?domain=DOMAIN(WebFetch).
Priority order for historical nameservers: SecurityTrails (preferred, comprehensive history) → WhoisFreaks → ViewDNS.info → DNS provider customer support.
WHOIS — domain ownership and registrar information
- who.is —
https://who.is/whois/DOMAIN(WebFetch). - ICANN Lookup —
https://lookup.icann.org/en/lookup?name=DOMAIN(WebFetch). wsl whois DOMAINfor shells withwhoisavailable.
Note: some ccTLDs (.in, .de, .uk, etc.) do not expose public WHOIS for the registrant due to regional privacy regulations.
IP reputation
ipinfo.io (organization, ASN, hostname, geolocation)
curl -s "https://ipinfo.io/IP/json"Returns: organization name, ASN, reverse hostname, country, city, ISP.
AbuseIPDB (abuse score for blacklist / nullroute decisions)
The API key should be stored in a secure vault (e.g., Bitwarden, environment variable, credential manager). Reference it as an environment variable ABUSEIPDB_API_KEY — never hardcode it.
curl -G https://api.abuseipdb.com/api/v2/check \
--data-urlencode "ipAddress=IP" \
-H "Key: $ABUSEIPDB_API_KEY" \
-H "Accept: application/json"If ABUSEIPDB_API_KEY is not set in the current shell, retrieve it securely and export it for the session (export ABUSEIPDB_API_KEY=... on Bash / $env:ABUSEIPDB_API_KEY=... on PowerShell) — do not print the value to stdout or logs.
Registrar ≠ hosting provider — critical rule
Never assume the registrar (WHOIS registrant) is also the hosting provider. They are independent business relationships: a domain can be registered at GoDaddy but hosted at Linode, or registered at Namecheap and hosted at AWS.
To find historical nameservers (e.g., "what was the NS before the domain was migrated?"):
- Start with SecurityTrails:
https://securitytrails.com/domain/DOMAIN/dns— shows NS history and A-record history with timestamps. - Fall through to WhoisFreaks → ViewDNS.info → contact the domain owner/administrator.
- Never infer historical nameservers from the current WHOIS record. WHOIS shows who sold the domain (registrar), not the hosting history (nameservers).
Example: A domain registered at GoDaddy (registrar) may have been hosted at AWS (NS: ns-123.awsdns-45.com), then migrated to Cloudflare (NS: nora.ns.cloudflare.com). The WHOIS registrant info does not change, but the NS records do. Historical DNS records reveal the path.
Subdomain enumeration
- HackerTarget — indexed subdomains (passive crawl):
curl -s "https://api.hackertarget.com/hostsearch/?q=DOMAIN". - crt.sh — subdomains from SSL certificates (Certificate Transparency logs):
curl -s "https://crt.sh/?q=%.DOMAIN&output=json". - Combine both for coverage: HackerTarget finds indexed DNS entries; crt.sh finds domains that had HTTPS active at some point in CT logs.
When to use each tool
| Tool | Use Case |
dig / Google DNS API | Real-time DNS records, current state |
| crt.sh | Historical subdomains, certificates, broad discovery |
| SecurityTrails | Historical NS records, DNS changes over time |
| WHOIS (ICANN / who.is) | Registrant, registrar, registration date, contact info |
| ipinfo.io | IP organization, ASN, geolocation, reverse hostname |
| AbuseIPDB | Abuse history, blacklist score, reporter comments |
| HackerTarget | Indexed subdomains from search engines and DNS scans |
Common workflows
"Find who hosts this domain"
- Get current NS:
curl -s "https://dns.google/resolve?name=DOMAIN&type=NS" - Cross-reference with known hosting NS prefixes (e.g.,
*.awsdns*.com= AWS,*.cloudflare.com= Cloudflare,*.linode.com= Linode). - Optionally verify with
ipinfo.ioon the A record IP.
"Find historical nameservers before a migration"
- Start with SecurityTrails:
https://securitytrails.com/domain/DOMAIN/dns - If not available, try WhoisFreaks or ViewDNS.info.
- Compare historical NS with current NS to identify the migration path.
"Check if an IP is reputation-flagged"
curl -s "https://ipinfo.io/IP/json"— basic info.curl -G https://api.abuseipdb.com/api/v2/check --data-urlencode "ipAddress=IP" -H "Key: $ABUSEIPDB_API_KEY" -H "Accept: application/json"— abuse score.
"Enumerate all subdomains of a domain"
curl -s "https://crt.sh/?q=%.DOMAIN&output=json"— CT logs.curl -s "https://api.hackertarget.com/hostsearch/?q=DOMAIN"— indexed scans.- Combine results and de-duplicate.
Related skills
- Shell selection and CLI tooling → see your project's or organization's guidance on shell environments and available tools.
- IP-based investigations (traceroute, MTR, geolocation) → use system tools and public APIs (ipinfo.io, MaxMind, etc.).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

