Question
How to add a SRV record in Plesk?
Answer
A SRV record can be added via Plesk or a command-line interface.
-
Go to Domains > example.com > DNS Settings and click Add Record.
-
Select Record Type as SRV and specify parameters:
Note: Plesk automatically adds underscore “_” to the values of Service name and Protocol.
-
Click OK to create the record. On the next page, click Update to save the changes to domain DNS zone.
Here is how the record will look after creation:
Host Type Value _sip._tcp.example.com. SRV sipserver.example.com.
-
Connect to a Plesk server via SSH (Linux) / RDP (Windows Server).
-
Use the ‘plesk bin dns’ utility with the following options (on Windows Server, use a command prompt as an Administrator):
# plesk bin dns –add example.com -srv ” -srv-service sip -srv-target-host sipserver.sample.com. -srv-protocol tcp -srv-port 5060 -srv-priority 0 -srv-weight 10
where
- example.com – a domain name where a SRV record will be created
- sip – service name
- sipserver.sample.com – target host
- tcp – protocol
Additional Information
To make sure the SRV record has been added successfully:
-
Using MXToolBox website:
-
Go to MXToolBox website and select SRV Lookup in the drop-down menu.
-
Enter the host name of the created SRV record. In this example, it is:
PLESK_INFO: _sip._tcp.example.com
-
Click SRV Lookup.
-
-
Using the dig utility (on Linux servers):
# dig +short SRV _sip._tcp.example.com @dns.google
where
- _sip._tcp.example.com – host name of the created SRV record
- dns.google – Google DNS server