VoIP.info Reference

SIP DNS discovery: NAPTR, SRV and address records

Understand service selection and failover before hard-coding a SIP server IP address.

Reviewed 2026-10-19SIP standards; extension support depends on both peersIntermediateDocumentation based · not lab tested

Discovery is more than an A record

SIP DNS procedures can use NAPTR to select supported services and transports, SRV to locate service targets and ports, and A or AAAA to resolve target addresses. The exact path depends on the URI, explicit port or transport information and client capabilities. Not every deployment uses every record type. Hard-coding an address can bypass the provider's service selection and failover design. Conversely, publishing SRV records does nothing for a client configured to use a fixed IP address and port.

Interpret priority and weight correctly

SRV priority ranks target groups: lower values are preferred. Weight influences selection among records with the same priority; it is not a promise that exactly that percentage of calls will use a target. DNS caches and implementation behavior affect observed distribution. Check the complete chain from the actual SIP domain and transport. Record answers, TTLs, resolver and timestamp. A working A lookup for the domain does not prove that the client queried or resolved the relevant SRV target.

Test failure rather than assuming it

Use the provider's documented configuration and an authorized maintenance window to observe what the client does when its selected target is unavailable. Distinguish DNS selection from registration state, active call state and media continuity. DNS failover does not migrate an established call by itself. For TLS, certificate identity validation must remain correct when service discovery selects another target. Do not disable validation merely because a replacement server has a different hostname. Compare the client's supported discovery and identity rules with the provider's requirements, then preserve the evidence with the incident timeline.

Apply SIP discovery to Asterisk PJSIP

The Asterisk PJSIP DNS guide maps RFC 3263 and SRV priority and weight to the effective URI, Asterisk resolver and transport selection, then keeps TTL, connection reuse, registration retry and service recovery distinct.

Apply SIP retry rules to a provider DNS path

The Voip Unlimited DNS workflow keeps URI inputs, client support, NAPTR order, SRV priority and weight, target addresses and SIP failure classification separate.

Bind Flowroute DNS evidence to the route direction and type

Flowroute prefers NAPTR, SRV, A records and then direct addresses for outbound PoP access, while inbound SIP-REG, PSTN-number and host or URI routes have different edge behavior. The Flowroute failover diagnostic retains that distinction.

Recognize the DIDWW empty-port SRV boundary

DIDWW says an inbound static SIP trunk first performs SRV lookup when its port is empty, then falls back to an A record when no SRV record exists. The DIDWW diagnostic keeps that resolution layer separate from trunk-group advancement.

Keep Twilio trunk identity separate from edge routing

Twilio requires the personal trunk domain in the Request-URI even when a generic localized domain supplies NAPTR and SRV edge routing. The termination diagnostic preserves both names and the selected address.

Treat Telnyx network data and DNS as dated evidence

Telnyx publishes A, SRV, NAPTR and machine-readable voice.json data, with a current Canada-address disagreement between first-party pages. The Telnyx diagnostic reconciles the selected region, DNS, packet source and provider confirmation.

Bind Twilio URI resolution to the selected resource and edge

Record the enabled OriginationUrl, optional edge parameter, current resolution, observed source and selected destination. The Twilio diagnostic keeps them aligned.

Bind Plivo URI resolution to one inbound attempt

Record the configured URI, resolver context, answers, TTL, selected address and provider result using the Plivo inbound diagnostic.

Bind Vonage URI resolution to one provider attempt

Record configured URI, resolver context, answers, selected address, timeout and provider result using the Vonage inbound diagnostic.

Revisit Blink discovery when retry evidence requires it

The Blink registration diagnostic keeps account domain, manual proxy, NAPTR, SRV, address and selected transport distinct.

Sources & applicability

Primary references for the technical details above. Operational examples and planning checklists are VoIP.info editorial guidance.

Examples require adaptation to your topology. No live PBX or hardware testing is claimed.