dog, the command-line DNS client

The SRV record

The SRV (service) record is an enhancement of the A and AAAA records, used to return not just addresses, but address–port combinations.


Here, we query for SRV records of the domain The result is a record that specifies a service with the address, with priority 10 and weight 20.

$ dog SRV
SRV 1h00m00s   10 20 "":5000
  A           53m49s +

In the Additional section of the response, specified by the + character, the IPv4 address of the service is also returned, to save another request from being made.