Dedupe PTR record related code in rax_dns_record