Domain IP Lookup

Consulta de DNS inverso: ¿qué nombre de host tiene esta IP?

El DNS normal convierte un nombre en una dirección. El DNS inverso hace el camino contrario: dale una dirección IP y devuelve el nombre de host publicado para ella en un registro PTR. También comprueba si ese nombre de host apunta de vuelta a la misma dirección, que es la prueba que aplican los servidores de correo antes de confiar en un remitente.

Prueba:

Cómo funciona el DNS inverso

Un registro PTR vive en un rincón especial del DNS construido con la dirección escrita al revés. La dirección IPv4 8.8.4.4 se consulta como 4.4.8.8.in-addr.arpa, e IPv6 usa ip6.arpa. El registro que hay allí contiene un nombre de host, como dns.google.

Lo que suele confundir es quién lo controla. El registro PTR pertenece a quien es dueño de la dirección IP, normalmente tu empresa de alojamiento o tu proveedor de internet, y no a quien administra el DNS de tu dominio. Para cambiarlo, por lo general hay que pedírselo a tu proveedor de alojamiento o buscar un ajuste en su panel de control.

Qué significa «confirmado en sentido directo»

Cualquiera que controle un registro PTR puede escribir en él cualquier nombre de host, incluso uno que pertenezca a otra persona. Por eso la comprobación estándar es resolver ese nombre de host y ver si apunta de vuelta a la IP original. Cuando lo hace, el par es un DNS inverso confirmado en sentido directo (FCrDNS, forward-confirmed reverse DNS). Cuando no, trata el PTR como una afirmación, no como una prueba.

Dónde importa el DNS inverso

  • Entrega de correo. Muchos servidores receptores rechazan o penalizan el correo de una dirección sin PTR, o cuyo PTR no está confirmado en sentido directo. Si tu correo llega a spam, revisa esto pronto.
  • Registros y monitorización. Un nombre de host es más fácil de leer que una dirección cuando revisas registros de conexión o alertas de seguridad.
  • Diagnóstico de red. Herramientas como traceroute usan los nombres PTR para etiquetar cada salto.
  • Controles de acceso. Algunos sistemas antiguos todavía permiten o bloquean conexiones según el nombre de host de quien se conecta.

Por qué puede no haber resultado

  • El propietario de la dirección nunca publicó un registro PTR. Es habitual en conexiones domésticas y móviles y en planes de alojamiento económicos.
  • La dirección es privada o reservada, como 192.168.1.1. Esas direcciones no tienen DNS inverso público, y esta herramienta no las consulta.
  • El registro existe en el sistema del proveedor, pero todavía no está delegado a los servidores de nombres correctos, así que los resolvedores no pueden encontrarlo.
Address:        192.0.2.25
Reverse name:   25.2.0.192.in-addr.arpa
PTR answer:     mail.example.com.

dig -x 192.0.2.25 +short
nslookup 192.0.2.25
Resolve-DnsName 25.2.0.192.in-addr.arpa -Type PTR

Forward check:
dig +short A mail.example.com
192.0.2.25

IPv6 reverse names, nibble by nibble

IPv6 does the same thing at a finer grain. Each hexadecimal digit, called a nibble, becomes its own label, so the reverse name has 32 labels before ip6.arpa. Take the documentation address 2001:db8::25 and work through it.

  • Expand every group to four digits and fill in the zeros hidden by the double colon: 2001:0db8:0000:0000:0000:0000:0000:0025.
  • Remove the colons to get 32 digits: 20010db8000000000000000000000025.
  • Reverse the order of the digits and put a dot between each one.
  • Add ip6.arpa at the end.
5.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa

dig -x 2001:db8::25 +short
Resolve-DnsName 5.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa -Type PTR

The tool does this conversion itself, and it also treats different spellings of one IPv6 address as equal when it compares the forward result. A server that uses both IPv4 and IPv6 needs a PTR record for each address it sends from, and each hostname needs a matching A or AAAA record.

Where reverse DNS matters

  • Email delivery. Many receiving servers reject or penalise mail from an address with no PTR, or one that isn't forward-confirmed. If your mail is landing in spam, check this early.
  • Logs and monitoring. A hostname is easier to read than an address when you scan connection logs or security alerts.
  • Network diagnostics. Tools such as traceroute use PTR names to label each hop.
  • Access controls. Some older systems still allow or block connections by the caller's hostname.

Why there may be no result

  • The owner of the address never published a PTR record. That's common for home and mobile connections and for cheap hosting plans.
  • The address is private or reserved, such as 192.168.1.1. Those have no public reverse DNS, and this tool doesn't query them.
  • The record exists in the provider's system but isn't delegated to the right nameservers yet, so resolvers can't find it.

Common problems and what to do about them

What you seeLikely causeWhat to do
No PTR recordThe address owner never published oneAsk your host or ISP to set it
PTR found, Not confirmedThe hostname has no A or AAAA record for this address, or points to a different oneAdd the matching forward record, or change the PTR to a name that already points here
A generic name such as 192-0-2-25.dyn.example.netThe provider's default name for the addressAsk for a custom name that you control. Receivers often treat generic names on mail servers as a warning sign
Two or more hostnamesSeveral PTR records on one addressAsk the provider to keep only the name your mail server uses
The old name after a changeA cached answer is still being servedWait for the old TTL to expire and check again, or query the provider's nameserver directly with dig
Result looks fine but mail still failsThe server sends from a different address than the one you looked upTake the address from the Received header of a delivered message. The mismatch is common with NAT or a shared outbound gateway

Blocks smaller than a /24 are the awkward case. The ISP keeps the reverse zone for the whole /24 and points individual addresses at the customer's records, a method described in RFC 2317. If you rent a handful of addresses, the PTR is still something you request from them.

Setting a PTR record for a mail server

  • Choose a hostname that you control, such as mail.example.com. It does not have to be in the same domain as the mail you send, but a name you own is easier to keep consistent.
  • Create an A record for it, and an AAAA record if the server sends over IPv6, pointing at the sending address.
  • Set the PTR through your host's control panel or a support request. Your DNS provider cannot do this for you unless it also owns the address.
  • Make the server identify itself with the same name in its SMTP greeting, which most mail guides recommend.
  • Run the address through this tool. You want one hostname, and it should carry the Forward-confirmed badge.

Preguntas frecuentes

Guías