Bản ghi SRV

Service-location record — specifies host AND port for a named service.

Bản ghi SRV là gì?

SRV (RFC 2782) lets clients discover where a named service lives without hard-coding a hostname or port. It encodes priority, weight, port, and target host. Used heavily by XMPP, Microsoft Active Directory, SIP, Matrix, Minecraft and many VoIP / federated services.

Ví dụ mục zone file

_xmpp-client._tcp.example.com. 300 IN SRV 10 60 5222 xmpp1.example.com.

Trường hợp sử dụng phổ biến

  • XMPP / Jabber federation — _xmpp-client._tcp.
  • Active Directory service location — _ldap._tcp, _kerberos._tcp.
  • SIP / Matrix federation — _sip._tls, _matrix._tcp.
  • Minecraft non-standard server port — _minecraft._tcp.

Lỗi phổ biến

Many client libraries only honour SRV for specific protocols; HTTP/HTTPS infamously do NOT use SRV (despite RFC drafts). For HTTP, use CNAME / A.

Tra cứu bản ghi DNS →

Loại bản ghi liên quan

MẸO BẢO MẬT

Đang dùng mật khẩu mặc định? Bảo vệ mạng của bạn bằng mã hóa NordVPN.