Difference between revisions of "SRV Records"

Jump to navigation Jump to search
574 bytes added ,  03:26, 19 April 2013
m
no edit summary
m
m
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
A Service record (SRV record) is a specification of data in the Domain Name System (DNS) defining the location (i.e. the hostname and port number) of servers for specified services. It is defined in [http://tools.ietf.org/html/rfc2782 RFC 2782].
A Service record ('''SRV record''') is a specification of data in the Domain Name System ('''DNS''') defining the location (i.e. the hostname and port number) of servers for specified services. It is defined in [http://tools.ietf.org/html/rfc2782 RFC 2782].


== Ports ==
== Ports ==
* XMPP uses 5222 ('''C2S''') and 5269 ('''S2S''') ports in TCP only ([http://xmpp.org/rfcs/rfc6120.html RFC 6020]).
=== Very important ===
* <span style="color:#FF0000">XMPP uses 5222 ('''C2S''') and 5269 ('''S2S''') ports in TCP only ([http://xmpp.org/rfcs/rfc6120.html RFC 6120]).</span>
=== If used ===
* STUN uses 3478 port in TCP/UDP and STUNS (STUN over TLS) uses 5349 port in TCP only ([http://tools.ietf.org/html/rfc5389 RFC 5389]).
* STUN uses 3478 port in TCP/UDP and STUNS (STUN over TLS) uses 5349 port in TCP only ([http://tools.ietf.org/html/rfc5389 RFC 5389]).
* TURN uses 3478 port in TCP/UDP and TURNS (TURN over TLS) uses 5349 port in TCP only ([http://tools.ietf.org/html/rfc5766 RFC 5766], [http://tools.ietf.org/html/rfc5928 RFC 5928]).
* TURN uses 3478 port in TCP/UDP and TURNS (TURN over TLS) uses 5349 port in TCP only ([http://tools.ietf.org/html/rfc5766 RFC 5766], [http://tools.ietf.org/html/rfc5928 RFC 5928]).
Line 14: Line 16:
* '''name''': the domain name for which this record is valid.
* '''name''': the domain name for which this record is valid.
* '''TTL''': standard DNS time to live field.
* '''TTL''': standard DNS time to live field.
* '''class''': standard DNS class field (this is always ''IN'').
* '''class''': standard DNS class field (this is always '''IN''').
* '''priority''': the priority of the target host, lower value means more preferred.
* '''priority''': the priority of the target host, lower value means more preferred.
* '''weight''': A relative weight for records with the same priority.
* '''weight''': A relative weight for records with the same priority.
Line 58: Line 60:
  _stun._tcp.example.net. TTL IN SRV priority weight port target
  _stun._tcp.example.net. TTL IN SRV priority weight port target
  _stun._udp.example.net. TTL IN SRV priority weight port target
  _stun._udp.example.net. TTL IN SRV priority weight port target
_stuns._tcp.example.net. TTL IN SRV priority weight port target


=== Example 1 ===
=== Example 1 ===
Line 100: Line 103:
  _turn._tcp.example.net. TTL IN SRV priority weight port target
  _turn._tcp.example.net. TTL IN SRV priority weight port target
  _turn._udp.example.net. TTL IN SRV priority weight port target
  _turn._udp.example.net. TTL IN SRV priority weight port target
_turns._tcp.example.net. TTL IN SRV priority weight port target


=== Example 1 ===
=== Example 1 ===
Line 142: Line 146:
* [http://tools.ietf.org/html/rfc2782 RFC 2782: A DNS RR for specifying the location of services (DNS SRV)]
* [http://tools.ietf.org/html/rfc2782 RFC 2782: A DNS RR for specifying the location of services (DNS SRV)]
* [http://xmpp.org/rfcs/rfc6120.html RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core]
* [http://xmpp.org/rfcs/rfc6120.html RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core]
* [http://tools.ietf.org/html/rfc5389 RFC 5389: Session Traversal Utilities for NAT (STUN)]
* [http://tools.ietf.org/html/rfc5766 RFC 5766: Traversal Using Relays around NAT (TURN): Relay Extensions to Session Traversal Utilities for NAT (STUN)]
* [http://tools.ietf.org/html/rfc5928 RFC 5928: Traversal Using Relays around NAT (TURN) Resolution Mechanism]
216

edits

Navigation menu