Add handling of the PTR queries for IPv4 and IPv6