SRV record is a category of data in DNS, designed to indicate what services are available like SIP, XMPP. SRV Record is defined in RFC 2782. Now, with wider usage of Cloud DNS, DNS with Geographical Redundancy and many new protocols for newer web services, newer entries are also checked even by the basic DNS checking tools. SRV records allow specific services, such as VOIP or IM, to be be directed to a separate location. Session Initiation Protocol or SIP, for example is related to IP Telephony. If any DNS testing tool is showing hazard symbol against your blank SRV Record – clearly know, this record, usually is not required for functioning of a plain website. This is an informative article on SRV Record, it actually offers no step for troubleshooting.
SRV Record Basics and Record Format
In addition to the newer Networking Protocols, customer implementations of older protocols such as LDAP , SMTP can also be adding support for SRV records. For example, these are normal, quite optimized result for reverse DNS :
1 2 | http://www.intodns.com/thecustomizewindows.com http://www.dnsstuff.com/tools#dnsReport|type=domain&&value=thecustomizewindows.com |
No SRV Record is showing up there. You can see a result here :
---
1 | http://dnsrlookup.onlinetoolkit.org/?host=thecustomizewindows.com++&recordtype=SRV |
SRV record contains the following standard information:
- Service: the symbolic name (usually starting with the underscore symbol) of service (like _sip).
- Protocol: usually it is either “_tcp” for TCP or “_udp” for UDP.
- Domain name: the domain of validity of the registration (fully qualified domain name or fully qualified local DNS zone being defined for the same original authority).
- TTL : standard DNS entry indicating the duration of Time-To-Live of the response (in seconds).
- Class: standard DNS address indicating the class (this is always IN for Internet) field.
- Type: the identifier type of DNS record (SRV is always a service record)
- Priority: The priority of the target server (non-negative integer value, the more higher the value is, the more the server will be available). If there are multiple records in different priorities for the same service and the same protocol, only one record for each priority will be returned to DNS clients (clients are supposed to then attempt to connect to the returned server priority with the lowest priority value among the returned records, but if that fails, they can use the next highest priority server in the list of servers that are returned). Different priorities help implement (possibly different in their content and more limited opportunities, for example one or more alternative servers running read-only support certain changes without the service) emergency services.
- Weight: relative weight for records with the same priority (non-zero integer value allows the DNS server to return a alétoirement target servers with the same priority, with a distribution corresponding to the weight indicated on the total weight of the other records with the same priority ). The weight does not effect if there is only one target server, the same priority for the same service and the same protocol (This parameter allows a fairly basic load distribution across multiple servers for services very popular with many customers making separate DNS queries, but it has no effect if the guests make their DNS requests through a single proxy caching DNS server).
- Port: the port number (TCP or UDP as the protocol above) where the service is available.
- Target: the name of the server that provides the service (must be resolved in IPv4 or IPv6 address by other DNS queries on A or AAAA records the name of the target service) with the protocol on the specified port.
SRV Record : Load balancing and Standard Used Protocols
Customers start by using the SRV record with the lowest priority and fall back on other records only when the connection fails. Thus, a service may have a server designated as the backup server, which is only used in case of failure of the primary server: it suffices to insert a SRV record with a higher priority to the primary server. This is important for Social Networking Services which uses Chat service like Facebook.
SRV record is commonly used for :
- Minecraft
- Teamspeak
- CalDAV
- CardDAV
- SMTP Authorization (Client)
- DNS Service Discovery
- IMPS
- Kerberos
- LDAP
- Puppet
- SIP
- XMPP
- Mail submission
- Post Office Protocol
- Internet Message Access Protocol
For example, you can add chat service (for Google Apps) :
1 | https://support.google.com/a/answer/34143?hl=en |