SRV Record Generator

Build a valid _service._proto record for SIP, XMPP, Minecraft, LDAP or Autodiscover — and read an existing one back in plain English.

The SRV Record Generator runs entirely in your browser. Your host names and ports never leave your device.

Open the Port Number Lookup

关于 SRV Record Generator

SRV is the one record type whose name carries data. The service and the transport are underscore labels in front of the domain — _sip._tcp.example.com — and the answer carries four fields: a priority that picks the group of servers to try, a weight that splits traffic inside that group, the port, and the host. Getting them in the right order matters, because nothing validates a hand-typed record until a client silently fails to connect. This generator starts from the services people actually publish, checks every field against the format rules, and prints both a BIND zone line and the separate columns a DNS dashboard asks for. Paste an existing record and it reads it back the other way.

功能特性

如何使用 SRV Record Generator

  1. Pick a service preset, or type the service and protocol yourself
  2. Enter the domain and the host that runs the service
  3. Set priority, weight and port — the preset fills in a sensible port
  4. Copy the zone line or the individual fields into your DNS provider

示例

输入

sip over tcp on example.com, host sipserver.example.com:5060

输出

_sip._tcp.example.com.	3600	IN	SRV	10 60 5060 sipserver.example.com.

The owner name carries the service and transport; the rdata carries priority, weight, port and target.

常见错误与故障排除

常见问题

What does an SRV record look like?
The name is _service._proto.domain and the value is four fields: priority, weight, port and target — for example _sip._tcp.example.com. 3600 IN SRV 10 60 5060 sipserver.example.com.
How do priority and weight differ?
Priority chooses the group: clients use the lowest number available and only fall back when those hosts fail. Weight splits traffic between hosts that share a priority, in proportion to the numbers, so 60 and 20 sends three times as much to the first.
What does a target of a single dot mean?
It is the standard way to publish that the service is deliberately not available at this domain. Clients read it as a definitive no rather than falling back to guessing a default host.
Do I need an SRV record for a Minecraft server?
Only if you run on a non-default port and want players to connect using the bare domain. _minecraft._tcp.example.com pointing at your host and port removes the need for anyone to type a port number.
Why is _tcp written with a leading underscore?
The underscore marks the label as a protocol prefix rather than a real host name, which keeps it out of the normal hostname namespace and stops it colliding with a machine actually called tcp.

相关工具

全部 ArrayKit 工具