Guides and tutorials

Hundreds of tutorials and step by step guides carefully written by our support team.

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:

https://mxtoolbox.com/ReverseLookup.aspx

enter image description here

enter image description here

Windows

  • Access the terminal (Command Prompt).

  • Enter the following command:

nslookup <IP> Example: nslookup

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

Name: server.swmanuales.com
Address: 81.25.125.146

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

Linux

  • Access the terminal.

  • Enter the following command:

dig -x <IP> Example: dig -x 81.25.125.146

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

;; QUESTION SECTION:
;115.112.25.81.in-addr.arpa.    IN PTR

;; ANSWER SECTION:
115.112.25.81.in-addr.arpa. 7199 IN PTR server.swmanuales.com.

;; Query time: 249 msec
;; SERVER: 192.168.2.36#53(192.168.2.36)
;; 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."