// SIP DNS

SRV port doesn't match the transport

Each SIP service name fixes the transport a client will use: _sip._udp means plain SIP over UDP, _sip._tcp plain SIP over TCP, and _sips._tcp SIP inside TLS. The port in the record is free to be anything, but by convention plain SIP listens on 5060 and TLS on 5061, so a record that pairs one with the other's port is nearly always a copy-and-paste slip.

The client trusts the record and does what it says. Under _sip._udp with 5061 it sends unencrypted UDP to a port where the server expects a TLS handshake, and gets nothing back. Under _sips._tcp with 5060 it opens TLS towards a plain listener, which reads the handshake as garbage and drops the connection.

What the records look like

; plain SIP sent to the TLS port, and TLS sent to the plain port
_sip._udp.example.com.  3600 IN SRV 10 50 5061 sbc1.example.com.
_sips._tcp.example.com. 3600 IN SRV 10 50 5060 sbc1.example.com.
; each service with its own listener's port
_sip._udp.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

  • wrong version number
  • tls: first record does not look like a TLS handshake
  • SIP/2.0 408 Request Timeout

Common causes

  • The _sips._tcp record was created first and then copied for UDP and TCP without changing the port.
  • TLS really does run on 5060 and plain SIP on another port, and the records are right but unusual.
  • A server was moved to TLS, and its old plain-SIP record kept the new port.
  • The DNS panel's form put the port and the weight in each other's place.

How to fix it

  1. Compare each record with the listeners the server actually runs, transport by transport.
  2. Change the port to the listener for that service, typically 5060 for _sip._udp and _sip._tcp and 5061 for _sips._tcp.
  3. If a listener genuinely uses a non-standard port, keep the record and note the reason in your DNS documentation.
  4. Test each service separately after the change, choosing the transport explicitly so that only its record is used.

How the free check shows it

When a record pairs a service with the other transport's usual port, the free check adds a note naming the target and port and linking here. It still tests the endpoint exactly as the record says, so you see what a client would see. A monitored Route lists the same note in its DNS panel.

See what your domain publishes. Run a free SIP SRV check

Questions

Is TLS on port 5060 forbidden?

No. The port is a convention and RFC 3263 lets SRV name any port, so the check only warns. It is worth confirming, because a mixed-up record and a deliberate choice look the same in DNS.

Why is there no _sip._tls service?

RFC 3263 marks TLS with the sips service over TCP, so _sips._tcp is the record SIP clients look for. Some older products used _sip._tls, which standard SIP clients never query.

Related problems

Know a line is down before your callers do

Line checks, real test calls and IVR verification for your call-center numbers, with alerts that say whose side failed.

Start free trial

14 days · full Pro features · no credit card