Using DNS SRV Records for Cisco CUCM and CUPS

William Bell
Vice President, Solutions and Products

When deploying Cisco Unified Communications Manager (CUCM) and Cisco Unified Presence (CUPS) one of the design objectives should be to architect a solution that adds dynamic fault tolerance.  One can achieve this objective by leveraging DNS SRV records.


What is DNS SRV?

An SRV record or Service record is a category of data in the Internet Domain Name System specifying information on available services. It is defined in RFC 2782. Newer internet protocols such as SIP and XMPP often require SRV support from clients.  Folks in Windows AD environments will also recognize this record as Windows uses it to advertise services.

What Does a DNS SRV Record Look Like?

First, what does the SRV record look like. Something like this:
Address: SRV service location:
priority = 0
weight = 100
port = 5060
svr hostname = SRV service location:
priority = 0
weight = 100
port = 5060
svr hostname =

Dissecting this mess:

1. The SRV record is actually two records that point to different hosts:

  • _sip: identifies the protocol (cosmetic)
  • _udp: identifies the transport (actual keyword)
  • the ‘cluster’ name

2. Parameters

  • priority: used to specify preferential treatment for the specific host entry. Modify according to need remember, lower priority is MORE preferred
  • weight: when priorities are equal, weight is used to differentiate preference. Again, keep the same to load balance. Maybe use weight and priority to provide a hierarchy of services. This could be handy in a CUPS cluster with > 2 nodes
  • port: Identifies the port number to use
  • svr hostname: Identifies the actual hosts A record

How Does CUCM and CUPS Use SRV Records?

On the CUCM server you create a SIP trunk that “points” to the CUPS cluster. You can use IP address (not recommended), DNS hostname, or DNS SRV cluster name.

On the CUPS server, you create a Presence Gateway and configure this gateway to point to a node in the CUCM cluster.  If you are not using SRV records, it is recommended to use the FQDN of the CUCM First Node (aka Publisher node).

The CUCM and CUPS configuration guides and the Unified Communications SRND touch on the SRV configuration option but there are a few things not covered in the documentation that could create confusion.  First, CUCM will default to using UDP port 5060 when the administrator configures a SIP trunk using either the IP address or DNS host name.  Interestingly enough, when you check the box SRV Record CUCM will use TCP port 5060.  The other point of interest is that when you specify the SRV record in CUCM you drop off the protocol and transport identifiers.

Example: should be configured as

With CUPS the behavior is more consistent.  First, CUPS is going to use UDP port 5060 whether you use IP address, DNS host name, or DNS SRV.  Second, when you configure the CUCM Presence Gateway you will use the full SRV cluster name.


Leave a Reply


Nick Kelly

Cybersecurity Engineer, Cisco

Nick has over 20 years of experience in Security Operations and Security Sales. He is an avid student of cybersecurity and regularly engages with the Infosec community at events like BSides, RVASec, Derbycon and more. The son of an FBI forensics director, Nick holds a B.S. in Criminal Justice and is one of Cisco’s Fire Jumper Elite members. When he’s not working, he writes cyberpunk and punches aliens on his Playstation.


Virgilio “BONG” dela Cruz Jr.

CCDP, CCNA V, CCNP, Cisco IPS Express Security for AM/EE
Field Solutions Architect, Tech Data

Virgilio “Bong” has sixteen years of professional experience in IT industry from academe, technical and customer support, pre-sales, post sales, project management, training and enablement. He has worked in Cisco Technical Assistance Center (TAC) as a member of the WAN and LAN Switching team. Bong now works for Tech Data as the Field Solutions Architect with a focus on Cisco Security and holds a few Cisco certifications including Fire Jumper Elite.


John Cavanaugh

CCIE #1066, CCDE #20070002, CCAr
Chief Technology Officer, Practice Lead Security Services, NetCraftsmen

John is our CTO and the practice lead for a talented team of consultants focused on designing and delivering scalable and secure infrastructure solutions to customers across multiple industry verticals and technologies. Previously he has held several positions including Executive Director/Chief Architect for Global Network Services at JPMorgan Chase. In that capacity, he led a team managing network architecture and services.  Prior to his role at JPMorgan Chase, John was a Distinguished Engineer at Cisco working across a number of verticals including Higher Education, Finance, Retail, Government, and Health Care.

He is an expert in working with groups to identify business needs, and align technology strategies to enable business strategies, building in agility and scalability to allow for future changes. John is experienced in the architecture and design of highly available, secure, network infrastructure and data centers, and has worked on projects worldwide. He has worked in both the business and regulatory environments for the design and deployment of complex IT infrastructures.