Rekord PTR
Reverse DNS — maps an IP back to a hostname.
Czym jest rekord PTR?
PTR records live in the special in-addr.arpa (IPv4) and ip6.arpa (IPv6) zones. They are set by whoever owns the IP block (ISP, cloud provider) and translate an address back to a name. Mail servers and many security tools use reverse DNS for verification and logging.
Przykładowy wpis pliku strefy
34.216.184.93.in-addr.arpa. 3600 IN PTR example.com.
Typowe zastosowania
- ▸Pass outgoing-mail reputation checks — mail receivers require PTR forward-confirmed reverse DNS (FCrDNS).
- ▸Friendly logs — Apache, Nginx, syslog and SIEMs annotate IPs with hostnames.
- ▸Tracing in tracerouting — hop names are PTR records.
- ▸Allow-listing by hostname rather than IP in some security tools.
Typowe pułapki
You can almost never edit PTR yourself — you must ask your ISP / cloud provider (AWS Route 53 lets EC2 customers set PTR via support ticket; DigitalOcean and Hetzner expose it in the UI).