Question: why ptr record is created in dns?
Answer: A PTR record (Pointer Record) connects an IP address to a host name. A PTR record is therefore sometimes called Reverse DNS Record because it converts an IP address into a name. A PTR record can only be created on the nameservers managed by the owner of the IP address, and is only valid for static IP addresses.