SRV records, or service records, define the location (host and port) of specific services on a server. Some services, like SIP and XMPP/Jabber, require SRV records.
For example, cluster hostnames in MongoDB do not resolve using standard dig
requests to the hostname in the connection string. MongoDB clusters are hosted on multiple nodes and each has its own hostname. To retrieve the node hostnames of a cluster using dig
, you must specify the srv
record type in the request and prepend _mongodb._tcp.
to the hostname in the connection string, as in dig srv _mongodb._tcp.<cluster-hostname>
.