What Are SRV Records?¶
SRV records are a type of DNS record that allows you to establish a connection between a service and a hostname.
Gandi allows you to add and manage SRV records for domains that use Gandi’s LiveDNS nameservers.
What are the recommended SRV records for Gandi Email?¶
We recommended adding the following SRV records to your domain name’s DNS records, if they have not already been added automatically. These records allow email clients and servers to find Gandi’s IMAP/POP and SMTP servers in a standard way.
_imap._tcp 10800 IN SRV 0 0 0 .
_imaps._tcp 10800 IN SRV 0 1 993 mail.gandi.net.
_pop3._tcp 10800 IN SRV 0 0 0 .
_pop3s._tcp 10800 IN SRV 10 1 995 mail.gandi.net.
_submission._tcp 10800 IN SRV 0 1 465 mail.gandi.net.
How can I add or edit SRV records?¶
Using the “Text” Mode¶
For clarity, it is recommended that you use text mode to manage an SRV record in your zonefile (see this page to see how to edit your zone file).
It is very important that the format of the record is correct:
service |
protocol * |
TTL |
IN SRV |
priority |
weight |
port |
target |
---|---|---|---|---|---|---|---|
_sip. |
_tcp |
86400 |
IN SRV |
0 |
5 |
5060 |
sipserver.example.com |
* Do not add the domain after the protocol since we add it to the record automatically by default.
Below is an example of what your SRV line would look like when added to your DNS records in text mode at Gandi:
_sip._tcp 86400 IN SRV 0 5 5060 sipserver.example.com.
Using the “Table” Mode¶
If you chose to use the “Table” interface in order to add/edit/delete an SRV record, below are the values that you will put in the form’s fields:
Type: SRV
TTL: The desired TTL
UNIT The units of the ttl (seconds, minutes, etc.)
Name: The service and protocol, separated by a dot (ex. _sip._tcp)
Priority: The priority
Weight: The weight
Port: The port
Target: The target, ending with a “.”