Network and Infrastructure¶
This section covers the IP, network, and web infrastructure side of the DNS Toolkit.
Common infrastructure endpoints¶
| Endpoint | Purpose |
|---|---|
GET /v1/reverse |
PTR / reverse DNS lookup for an IP |
GET /v1/asn |
ASN, network prefix, organization, and location |
GET /v1/blacklist |
DNSBL and reputation checks |
GET /v1/ports |
Check common open ports |
GET /v1/tech-stack |
Detect web stack and server signals |
GET /v1/redirects |
Follow an HTTP redirect chain |
Python SDK examples¶
Reverse DNS lookup¶
from toolkitapi import DNS
with DNS(api_key="tk_...") as dns:
result = dns.reverse("8.8.8.8")
print(result)
ASN and provider details¶
from toolkitapi import DNS
with DNS(api_key="tk_...") as dns:
result = dns.asn("1.1.1.1")
print(result)
Blacklist check¶
from toolkitapi import DNS
with DNS(api_key="tk_...") as dns:
result = dns.blacklist("8.8.8.8")
print(result)
Scan common ports¶
from toolkitapi import DNS
with DNS(api_key="tk_...") as dns:
result = dns.ports("toolkitapi.io")
print(result)
Detect the technology stack¶
from toolkitapi import DNS
with DNS(api_key="tk_...") as dns:
result = dns.tech_stack("github.com")
print(result)
Trace redirects¶
from toolkitapi import DNS
with DNS(api_key="tk_...") as dns:
result = dns.redirects("http://github.com")
print(result)
What these endpoints return¶
These infrastructure endpoints help turn a hostname or IP into something operationally useful:
reverseandasnenrich an IP with PTR, ASN, organization, and location dataportschecks a practical set of common TCP services rather than every port on the hosttech_stackextracts server headers, technologies, and missing security headersredirectsexplains where a URL ultimately lands and how it got there
What these endpoints return¶
These infrastructure endpoints help turn a hostname or IP into something operationally useful:
reverseandasnenrich an IP with PTR, ASN, organization, and location dataportschecks a practical set of common TCP services rather than every port on the hosttech_stackextracts server headers, technologies, and missing security headersredirectsexplains where a URL ultimately lands and how it got there
Jump straight to live tools¶
- https://dns.toolkitapi.io/tools/reverse/
- https://dns.toolkitapi.io/tools/asn/
- https://dns.toolkitapi.io/tools/blacklist/
- https://dns.toolkitapi.io/tools/ports/
- https://dns.toolkitapi.io/tools/tech-stack/
- https://dns.toolkitapi.io/tools/redirects/
Good use cases¶
- security and asset inventory checks
- infrastructure enrichment in internal tools
- email sender reputation review
- redirect validation during migrations