CompTIA PenTest+ PT0-001 – Question47

A penetration tester wants to script out a way to discover all the RPTR records for a range of IP addresses. Which of the following is the MOST efficient to utilize?

A.
nmap -p 53 -oG dnslist.txt | cut -d : -f 4
B. nslookup -ns 8.8.8.8 << dnslist.txt
C. for x in {1…254}; do dig -x 192.168.$x.$x; done
D. dig -r > echo 8.8.8.8 >> /etc/resolv.conf

Section: (none)

Correct Answer: A