RCS Leverages DNS NAPTR Records for Server Discovery
Rich Communication Services (RCS), the successor to SMS, utilizes DNS NAPTR records to dynamically locate its servers, enabling modern IP-based communication.

Rich Communication Services (RCS), increasingly adopted as the successor to SMS, relies on a sophisticated DNS infrastructure for its operations. Unlike the legacy SMS protocol, which was built upon older paging technologies, RCS is designed from the ground up for modern IP-based networks, offering richer formatting and enhanced security features such as end-to-end encryption and digital signatures.
The core of RCS's server discovery mechanism lies in the use of NAPTR (Naming Authority Pointer) records within the Domain Name System (DNS). These records, defined in RFC 2915 and ratified in 2000, are not new but have seen a recent surge in visibility, particularly on networks supporting RCS traffic. NAPTR records allow for URI-based lookups, a more flexible approach than traditional DNS records that primarily resolve to IP addresses or hostnames.
When a device needs to connect to an RCS server, it queries DNS for NAPTR records associated with its service. A typical query might look for records related to fp-us-verizon.rcs.telephony.goog. The DNS server responds with NAPTR records that can instruct the client on how to proceed. These records contain flags, services, and potentially regular expressions for rewriting strings, though in the case of RCS, the regular expression is often empty.
The NAPTR record's 'S' flag indicates that the next step involves a SRV (Service) record lookup. This guides the RCS client to query for SRV records, which specify the service, protocol, port, and target hostname for the connection. For RCS, this often translates to looking up _sips._tcp.fp-us-verizon.rcs.telephony.goog.
The SRV records then provide the specific details needed to establish a secure connection. In the observed examples, this includes ports like 5223 or 443, and target hostnames that ultimately resolve to IP addresses via standard A and AAAA records. The service specified, SIPS+D2T, signifies "Secure SIP Direct to TCP," indicating that the communication will use the Session Initiation Protocol (SIP) over Transport Layer Security (TLS) with TCP as the underlying transport.
This intricate DNS resolution process, involving NAPTR and SRV records, allows RCS to dynamically discover and connect to the appropriate servers, facilitating the establishment of secure, direct-to-TCP connections. While NAPTR records offer advanced capabilities, including the use of regular expressions for complex string manipulation, their current application in RCS primarily focuses on directing clients to the correct SRV records for service discovery.
The use of NAPTR records, while not a new technology, highlights the evolving complexity of modern communication protocols and their reliance on robust DNS infrastructure. Security researchers and penetration testers may find the potential for regular expression manipulation within NAPTR records an area of interest for further investigation.