How do I create an SRV record?

  • Applies to: All Service Types
    • Difficulty: Easy
    • Time Needed: 10
    • Tools Required: Account Center access


An SRV record is a special type of DNS entry used to specify not just an IP, but also a port. (mt) Media Temple only uses SRV records to allow automatic configuration of some mail programs. Other services or web hosts may need you to manually configure a specific SRV record for other purposes.


These instructions only apply if your domain name is using (mt) Media Temple's nameservers. This means you must have NS1.MEDIATEMPLE.NET and NS2.MEDIATEMPLE.NET designated as your nameservers with your registrar. For more information, please see (mt) Media Temple's DNS/Nameserver information.


Automatically add a Mail Config SRV for (mt) Mail

  1. Sign into the Account Center.
  2. Click on the domain you'd like to create the SRV record, then scroll down to the DNS & Zone Files section.
  3. Click the Edit DNS Zone File icon.


  4. Scroll down and click the Add Mail Config button, which will then ask for you to confirm the creation of a CNAME and SRV record. 


  5. The record will be automatically created for your domain. It will look similar to:

To perform a DNS lookup to ensure you've entered the record correctly, you can use the "dig" command to look it up:

dig any

You should see a reply with information similar to the following:

;; ANSWER SECTION: 43200 IN SRV 0 5 80

Manually configure your SRV record

This article is provided as a courtesy. Configuration of custom DNS records is not covered by (mt) Media Temple's Statement of Support. Please take a moment to review the Statement of Support.

Advanced Support can help!

If you're having trouble with the steps in this article, additional assistance is available via Advanced Support, our premium services division. For more information on what Advanced Support can do for you, please click here.

In order for some third-party services to function with your domain name, you will be required to configure a custom SRV record. If this is needed, instructions should be available from the service that requires it. For full instructions on adding a DNS record, please see the following article:

SRV records use the following format: TTL class SRV priority weight port target.

Example: 43200 IN SRV 0 5 5060

More information on what each item means can be found in this Wikipedia article.

Since the Account Center does not have separate fields for each of the required parameters, you will need to enter the record as follows:

  1. Click the "Add a record" button at the bottom of the DNS editor.
  2. Enter the service and protocol portions in the Name field of the DNS editor.
  3. Ignore name, as the domain name is added for you, based on the domain whose DNS you are editing. TTL and class portions are also automatically set and can be ignored
  4. Select SRV from the Type drop-down menu.
  5. In the Data field, enter the remaining items. The order of entry can be found in the example above.
  6. That's it! Using the data shown in the example above, your SRV record would look like this:


Before you make any other type of DNS change, it's a good idea to consider whether you will need to lower your TTL. For more information and detailed instructions, please see: How can I lower or raise the TTL for my domain?


Was this article helpful?
1 out of 1 found this helpful