// SIP DNS

SRV target is a CNAME

The target of an SRV record is the host a client should connect to, and RFC 2782 says it must be a name with address records of its own. A CNAME is an alias that says only that the real data lives under another name. Putting one in the target field makes the client do a second, unplanned lookup before it can send anything.

Many resolvers quietly follow the alias, so the setup often works and the mistake survives for years. Others take the rule literally and treat the target as having no address, and a few SIP stacks drop the record entirely. The result is a trunk that works from one carrier and not from another, with nothing changed on your side.

What the records look like

; the target is an alias
_sip._udp.example.com.  3600 IN SRV   10 50 5060 sip.example.com.
sip.example.com.        3600 IN CNAME sbc1.example.net.
; point the SRV record at the canonical name instead
_sip._udp.example.com.  3600 IN SRV   10 50 5060 sbc1.example.net.

Messages you may see

  • zone example.com/IN: _sip._udp.example.com/SRV 'sip.example.com' is a CNAME (illegal)
  • sip.example.com is an alias for sbc1.example.net.

Common causes

  • A provider asked you to point a friendly name at their host with a CNAME, and that friendly name went into the SRV target.
  • The target was once a plain host and later became an alias when the server moved to a cloud load balancer.
  • A DNS hosting panel offered the alias as a target and did not warn about it.
  • Records were copied from a web setup, where aliasing a name to a CDN is normal practice.

How to fix it

  1. Look up what the alias currently resolves to, and use that canonical name as the SRV target.
  2. If the canonical name belongs to your provider and may change, ask them for a stable hostname meant to be used in SRV records.
  3. Keep the friendly alias for people and other uses, but leave it out of SRV records.
  4. Run a zone checker after the change, since BIND and similar tools flag this mistake at load time.

Platform notes

  • BIND: named-checkzone reports an alias target as illegal but still loads the zone, so the warning is easy to miss in a deployment log.

How the free check shows it

The free check follows the alias the way most resolvers do, so the endpoint is still listed and can be tested. An amber note names the target and says it is a CNAME, with a link here. On a monitored Route the note appears in the DNS panel and stays there until the record is fixed.

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

Questions

Why does it work if it is not allowed?

Most recursive resolvers chase the alias and hand back an address, so lenient clients never notice. The rule matters when a strict client, or a resolver that will not chase it, sits on the other end.

Can the SRV record's own name be a CNAME?

That is a different mistake with the same effect. The owner name, such as _sip._udp.example.com, also should not be an alias, because a CNAME cannot sit beside other records at one name.

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