What is SRV Record?
A DNS query known as an SRV (Service) Lookup locates particular services (such as SIP and XMPP) inside a domain by providing the hostname and port number of the service.
How SRV Record Works?
A service (such as _sip._tcp.example.com) is mapped to a target server by an SRV record.
It specifies the service's target host, port number, priority, and weight.
DNS servers provide SRV records, which clients utilize to establish a connection with the appropriate server.
Based on the port and priority that are supplied, the client establishes a connection to the service (higher priority servers are tried first).
Service discovery is made flexible and dynamic via SRV records.