· Tutorial ·

Consult or modify PTR record

A PTR record allows reverse resolution, i.e. converting an IP to a host name, unlike the A record which converts from domain to IP.

It is usual that to avoid fraud and spam, mail servers check that the IP that sends the mail has a PTR record.

By default, in SWHosting the PTR record corresponds to the name of the contracted Cloud, for example: ce2022012410001.dnssw.net

SWPanel allows you to consult and modify the PTR record. To do this, access the Dashboard of the Cloud server you want to modify. Click on Active services tree (left menu) and click on the corresponding service (in our case) SWHosting Manuals or you can also locate the server in the general SWPanel search engine:

enter image description here

In the SERVICE IDENTIFICATION box, click on the icon to the right of your IP.

enter image description here

Then go to ... (right side) > Modify the PTR record of this IP:

enter image description here

Enter the new PTR name and click Save and Change:

enter image description here

Check PTR record

If SWPanel allows you to check the PTR record of your contracted IP, you can also check the PTR record of any IP.

To do this, you can use tools included in your operating system or the following online service:


enter image description here

enter image description here


  • Access the terminal (Command Prompt).

  • Enter the following command:

nslookup <IP> Example: nslookup

  • You will get a result similar to the following:
Server: UnKnown

Name: server.swmanuales.com

The "Name" field is the result of the reverse resolution.


  • Access the terminal.

  • Enter the following command:

dig -x <IP> Example: dig -x

  • You will get a result similar to the following:
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>>> -x
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 17329.
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;    IN PTR

;; ANSWER SECTION: 7199 IN PTR server.swmanuales.com.

;; Query time: 249 msec
;; WHEN: Thu Apr 11 16:56:58 2019
;; MSG SIZE rcvd: 71

In the "ANSWER SECTION" section, the result of the query appears: "server.swmanuales.com."