Answer the question
In order to leave comments, you need to log in
How, using a while loop, the dig command to display the A-records of the domain in the ips.txt file, after which, on the next line, the PTR-record of the IP?
Started writing the script:
#!/bin/bash
dig google.com +noall +answer +short >> ips.txt
dig -x -f ips.txt +short >> ips2.txt
dig -x 64.233.165.138 +short >> ips2.txt
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question