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?

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

Section: (none)

Correct Answer: A