SRV Record Parser API

POST

Extract services, protocols, and domains from any DNS SRV record.

SRV Record Parser analyzes DNS SRV records and extracts service location information including priority, weight, port, and target server details.

Try it — live request, no key required

Request
POSTapi.apiverve.com/v1/srvparser
Body
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "raw_record": "_http._tcp.example.com. 86400 IN SRV 10 60 80 server.example.com.",
    "parsed": {
      "name": "_http._tcp.example.com.",
      "service": "_http",
      "protocol": "tcp",
      "domain": "example.com.",
      "ttl": 86400,
      "class": "IN",
      "priority": 10,
      "weight": 60,
      "port": 80,
      "target": "server.example.com"
    },
    "service_info": {
      "name": "HTTP",
      "description": "Web service",
      "default_port": 80
    },
    "interpretation": {
      "priority_explanation": "Priority level 10 (lower is better)",
      "weight_explanation": "Weight 60 for load balancing",
      "target_explanation": "Connect to server.example.com:80"
    },
    "is_valid": true
  }
}

About the SRV Record Parser API

Includes recognition of common services like HTTP, XMPP, SIP, and email protocols with detailed explanations of priority and weight values.

What people use it for

Service Discovery
Parse DNS SRV records for service discovery in distributed systems, microservices, and load-balanced environments
Network Diagnostics
Build network diagnostic tools that analyze SRV records for troubleshooting connectivity and service availability issues
Configuration Analysis
Analyze service configuration in DNS including priority, weight, port, and target information for optimization
Record Validation
Validate SRV record formatting and structure to ensure compliance with RFC 2782 standards and best practices

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use SRV Record Parser

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the SRV Record Parser API.

Read the docs →
Which protocols and service types does the parser identify?
It identifies common protocols including HTTP, XMPP, SIP, and email services. When a known service is recognized, the parser supplies human-readable service descriptions and default port details alongside protocol and domain information.
What would parsing 50,000 SRV records a month cost me?
Each parse costs 2 credits, so 50,000 records consume 100,000 credits each month. That uses half of the 200,000 credits included with the Starter plan, working out to about $0.30 per 1,000 parses. If you just need to test, the Free plan includes 100 parses every month.
Do I get the target host and port on the Free plan?
No. The target host, port number, priority, weight, recognized service info, and human-readable explanations are premium fields unlocked on Starter and above. The Free plan provides basic record details including service identifier, protocol, domain, TTL, and validation status.
How does the API handle malformed or invalid SRV records?
The response includes an is_valid field indicating whether the string matches valid SRV syntax. If a string cannot be parsed correctly into standard DNS components, this flag signals the formatting issue so your application can flag or reject bad input.
Can I use parsed SRV data inside my commercial monitoring tools?
Yes, provided you are on a paid plan. You can use the parsed records, priority rankings, and service details inside your commercial network diagnostics, discovery tools, or SaaS platforms. You cannot redistribute or resell the raw parser output directly as a standalone dataset.

Ready to build with SRV Record Parser? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs