{"uid":"cap_cO3rfnvgWEgfOt9qnybp-","slug":"mqtt-srv-record-lookup-via-cloudflare-doh-7d3fdd6e","name":"MQTT SRV Record Lookup via Cloudflare DoH","description":"MQTT service discovery (_mqtt._tcp.<domain>): SRV records with priority, weight, port and target host, from Cloudflare DoH. Tells a client where the domain's mqtt service lives without guessing hosts. $0.01 per lookup.","url":"https://dns.intel.rallylive.ca/dns/srv/mqtt-tcp?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_B1gtNdx5H30mNs0orhriZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resolves _mqtt._tcp.<domain> SRV DNS records to discover the host, port, priority, and weight of a domain's MQTT broker service.","exampleAgentPrompt":"Look up the MQTT SRV DNS record for example.com so I can find out which host and port the MQTT broker is running on.","exampleUseCases":[{"title":"IoT device broker discovery","prompt":"I'm setting up an IoT device that needs to connect to the MQTT broker for mysmarthome.io — can you look up the SRV record for _mqtt._tcp.mysmarthome.io and tell me the hostname and port it should connect to?"},{"title":"Verifying MQTT service configuration","prompt":"We just migrated our MQTT infrastructure and I want to confirm the DNS SRV record for _mqtt._tcp.industrialfleet.com is pointing to the right host and port — can you check that for me?"},{"title":"Automated service health pre-check","prompt":"Before my agent tries to publish sensor data, check if there's a valid MQTT SRV record for iotplatform.net so we know where to connect and whether the service is discoverable via DNS."}],"resultDescription":"Returns SRV DNS record data for _mqtt._tcp.<domain> including one or more records each containing: priority (integer), weight (integer), port (integer), and target hostname. Sourced from Cloudflare DoH for reliability and speed.","failureModes":["No SRV record found for domain — MQTT service not advertised in DNS","Domain does not exist or NXDOMAIN response","Cloudflare DoH upstream timeout or unavailability","Malformed domain input causing DNS query failure","Domain exists but has no _mqtt._tcp SRV records configured"],"whenToPreferThis":"Use this endpoint when you need to programmatically discover a domain's MQTT broker connection details (host and port) via standard DNS SRV service discovery, rather than hardcoding broker addresses. Ideal for IoT agents, automation workflows, or dynamic client configuration that must respect published DNS service records. Prefer this over generic DNS lookup tools when the specific service type is MQTT over TCP.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T00:59:26.284Z","isFirstParty":false,"canonicalSlug":"mqtt-srv-record-lookup-via-cloudflare-doh-7d3fdd6e"}