Network & DNS
5 credits
NETWORK
DNS A Lookup API
Perform live DNS A record lookups for any domain via REST API. Returns all IPv4 addresses and their TTL values from a real DNS resolution — useful for infrastructure monitoring, network diagnostics, and verifying DNS configuration after changes.
Try it live →How it works
POST a domain name. The API performs a live DNS query using Node.js's dns.resolve4() (with TTL option), returning all A records with their IPv4 addresses and TTL values in seconds.
Use cases
- Verify DNS A record configuration after pointing a domain to a new server
- Monitor DNS changes as part of infrastructure automation
- Check if a domain resolves before making HTTP requests in agent workflows
- Audit A records across multiple domains for security reviews
API Reference
POST https://slopshop.gg/v1/net-dns-a
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Input parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
url / domain |
string | required | The URL or domain name to query |
Example response
{
"data": {
"records": [
"93.184.216.34"
],
"ttl": 86400
},
"meta": {
"credits_used": 5,
"engine": "real",
"ms": 4
}
}
Examples
Three real-world scenarios showing how developers use DNS A Lookup in production.
Example 1
Verify DNS after migration
Check A records after pointing a domain to a new server to confirm propagation.
curl -X POST https://slopshop.gg/v1/net-dns-a \
-H "Authorization: Bearer $SLOPSHOP_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "example.com"}'
Example 2
Pre-flight check in agent
Verify a domain resolves before making HTTP requests in an automation workflow.
curl -X POST https://slopshop.gg/v1/net-dns-a \
-H "Authorization: Bearer $SLOPSHOP_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "api.github.com"}'
Example 3
Audit infrastructure DNS
Check that all production subdomains resolve to expected IPs.
curl -X POST https://slopshop.gg/v1/net-dns-a \
-H "Authorization: Bearer $SLOPSHOP_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "app.myproduct.com"}'
Code examples
curl
curl -X POST https://slopshop.gg/v1/net-dns-a \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input": "your data here"}'
Python
import requests
response = requests.post(
"https://slopshop.gg/v1/net-dns-a",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"input": "your data here"}
)
result = response.json()
print(result["data"])
Node.js
const response = await fetch("https://slopshop.gg/v1/net-dns-a", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({ input: "your data here" })
});
const { data } = await response.json();
console.log(data);
CLI
# Install the Slopshop CLI
npm install -g slopshop
# Set your API key
export SLOPSHOP_KEY=your_api_key
# Call net-dns-a
slop net-dns-a '{"input": "your data here"}'
Pricing
Credits per call
5
credits
Cost per call
$0.005
at Starter tier
Tier
NETWORK
Makes network calls
Credits are purchased in bundles starting at $1 for 1,000 credits. All compute APIs like this one use 5 credits per call — that's $0.005. See all pricing tiers.
Related APIs in Network & DNS
View the full API catalog · Try in playground · Documentation