Network & DNS API
Resolve DNS records and calculate subnets to power monitoring, diagnostics, inventory, and provisioning tools.
Included endpoints
GET /api/v1/dns/resolve?domain=example.com– A/AAAA lookupsGET /api/v1/dns/mx?domain=example.com– MX mail server lookupsPOST /api/v1/subnet/calc– IPv4/IPv6 subnet calculations
Example: DNS resolve
curl --request GET \
--url 'https://hefftools.dev/api/v1/dns/resolve?domain=hefftools.dev' \
--header 'X-RapidAPI-Key: <your-rapidapi-key>'
Response (example):
{
"domain": "hefftools.dev",
"addresses": [
{"family": "IPv4", "address": "93.184.216.34"}
]
}
Use cases
- Health checks and diagnostics dashboards
- Inventory of DNS and mail routing in internal tools
- Automation that validates DNS before deploying services