Consult or modify PTR record

Atualizado em 2026-10-24 10:01:17 294 visitas

A PTR record allows for reverse resolution, that is, converting an IP to a hostname, unlike the A record which converts from domain to IP.

It is common for mail servers to check that the IP sending the email has a PTR record in order to avoid fraud and spam.

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 so, access the Dashboard of the Cloud server you wish to modify. Click on Active services tree (left menu) and click on the corresponding service (in our case) SWHosting Manuals or, alternatively, you can locate the server in the SWPanel general search:

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

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

Enter the new PTR name and press Save and change:

Verify PTR record

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

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

https://www.whatsmydns.net/dns-lookup/ptr-records

Windows

  • Access the terminal (Command Prompt).

  • Enter the following command:

nslookup <IP> Example: nslookup

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

Name:  server.swmanuales.com
Address:  81.25.127.62

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.127.62

  • We will get a result similar to the following:
; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> -x 81.25.127.62
;; 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:
;62.127.25.81.in-addr.arpa.    IN      PTR

;; ANSWER SECTION:
62.127.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.'