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.

Built and maintained by Udit Agarwal

Open the Port Number Lookup

About 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.

Features

  • Presets for SIP, XMPP, Matrix, Minecraft, LDAP, Kerberos, Autodiscover, CalDAV, STUN and TURN
  • Validation of priority, weight, port and TTL ranges
  • Catches IP addresses in the target, the most common SRV mistake
  • Understands "." as a deliberate no-service target
  • Zone file line and dashboard fields from the same input
  • Decode mode that explains a pasted record field by field
  • A dig command to check what was published
  • Everything is generated on your device

How to use the 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

Example

Input

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

Output

_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.

Common errors & troubleshooting

  • The record was rejected because the target is an IP address. — SRV targets must be hostnames. Publish an A or AAAA record for the server and point the SRV target at that name instead.
  • Clients ignore the second server entirely. — Priority is a strict preference, not a load balancer — the lower number is used until it fails. To split traffic between servers, give them the same priority and different weights.
  • The DNS dashboard rejects the name with underscores. — Some panels want only the service part in the name field and add the domain themselves. Enter _sip._tcp rather than the full owner name, and check the preview the panel shows before saving.

Frequently asked questions

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.

Related tools

  • CAA Record Generator — Build the DNS record that names which certificate authorities may issue for your domain.
  • SPF Record Generator — Build and validate the SPF TXT record that stops others sending mail as your domain.
  • DKIM Record Generator — Build and inspect the DKIM TXT record that publishes your mail signing key.
  • Reverse DNS Generator — Turn IPs and prefixes into PTR names, zone files and RFC 2317 delegations.
  • Port Number Lookup — What runs on a TCP or UDP port — search by number or service name.
  • DMARC Record Generator — Build and validate a DMARC DNS TXT record with policy, reporting and alignment.

Guides

More Network tools

  • WHOIS Record Parser — Turn a raw WHOIS response into dates, registrar, name servers and decoded status codes.
  • Subnet Splitter — Split a CIDR block into equal subnets or size them by host count with VLSM.
  • DNS TXT Record Splitter — Split a long TXT value into 255-byte strings for DKIM, SPF and verification.
  • P2P File Transfer — Send files straight from one browser to another over a direct connection.
  • Email Domain Health Check — Paste your MX, SPF, DKIM and DMARC records for a scored deliverability report with fixes.
  • CIDR / Subnet Calculator — Calculate network, broadcast, host range and mask from a CIDR block.
  • IPv6 ↔ IPv4 Converter — Convert between IPv4 and IPv6 (mapped/expanded/compressed) and extract embedded IPv4.
  • User Agent Parser — Parse a User-Agent string into browser, engine, operating system and device, in your browser.
  • HAR File Viewer — Open a HAR file and inspect the request waterfall, headers, timings and sizes, in your browser.
  • IP Range to CIDR — Convert a start and end IP address into the minimal set of CIDR blocks, and back.
  • Set-Cookie Parser — Parse Set-Cookie and Cookie headers into a readable table of names, values and attributes.
  • IP Address to Integer Converter — Convert an IPv4 or IPv6 address to its integer, hex and binary form, and back.

See all Network tools (24) · All tools