This requires additional checks for the RDATA length and the availability of record metadata. (cherry picked from commit a12f9431) (cherry picked from commit 1e5ac8a1)