No SIP SRV records for a domain
SRV records tell a SIP client which host and port answer for a domain, with one set per transport: _sip._udp, _sip._tcp and _sips._tcp. A client given a bare domain such as example.com, finding none of them, follows RFC 3263 and looks up the domain's own A records instead, then sends to the default port: 5060 for UDP and TCP, 5061 for TLS.
For a domain served by one SIP server (PBX, SBC, proxy or provider) on the default ports, that fallback works and nothing is broken. It falls short once there is a second server that callers should move to when the first stops answering, or when TLS listens on some other port, because an A record carries an address and nothing more.
What the records look like
; dig +short SRV _sip._udp.example.com prints nothing: no SRV records
; publish one record per transport the server really offers
_sip._udp.example.com. 3600 IN SRV 10 50 5060 sbc1.example.com.
_sip._tcp.example.com. 3600 IN SRV 10 50 5060 sbc1.example.com.
_sips._tcp.example.com. 3600 IN SRV 10 50 5061 sbc1.example.com.Messages you may see
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1*** Can't find _sip._tcp.example.com: No answer_sip._tcp.example.com has no SRV record** server can't find _sip._udp.example.com: NXDOMAIN
Common causes
- The domain was set up for email and the web, and nobody added SIP records when the trunk went live.
- The records were created under the wrong name, such as _sip._udp.sip.example.com while peers are given example.com.
- A move to another DNS host copied the A, MX and TXT records but dropped the SRV ones.
- The records exist only in an internal zone, so resolvers on the internet never see them.
- The provider always intended peers to dial a hostname with a port, and SRV was never part of the design.
How to fix it
- Decide whether you need SRV at all, because one server on the default ports can live with the A record fallback.
- Publish one SRV record for each transport you actually offer, under the exact domain your peers are configured with.
- Point every record at a target name that has its own A record, never at an alias.
- Query each service from outside your network once the change is live, since an internal resolver may answer differently.
- Configure peers with the domain and no port, as a port in the address makes most clients skip SRV.
Platform notes
- AudioCodes: A Proxy Set resolves its address with an A query unless DNS Resolve Method is set to SRV, and even then only an address entered as a domain without a port gets the SRV query.
- Cloudflare: The record's name holds the service and protocol, such as _sip._udp.example.com, and its data holds priority, weight, port and target.
- FreeSWITCH: The Sofia profile settings disable-srv and disable-naptr switch off those lookups for outbound destinations, so make sure neither is set when a domain without a port reaches the wrong host.
How the free check shows it
With the port left empty, the free check queries every SIP service it supports and, finding none, tests the domain's A records on the default port. The DNS card then reads no SRV, then A, with a note that links here. A monitored Route shows the same note in its DNS panel, and the SRV alarm can report it when you turn that alarm on.
Questions
Is it wrong for a SIP domain to have no SRV records?
No. RFC 3263 makes the A record fallback part of the standard, and plenty of single-server setups rely on it. SRV becomes worth having once you run a backup server or a non-default port.
Do I need NAPTR records as well?
Rarely. NAPTR lets a domain say which transports it prefers, but most PBXs and SBCs go straight to SRV, and several skip NAPTR unless told to use it.