Hey ,
my logic was to get as many file sin as possible so here is the half part of the code
Please correct me if i am wrong.
grep '^[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}$' followed by respective file names which lies under /var/lib/output/ for me atleast.
Now i want to write the code for reverse dns here .....am i on the right path?
I just wanted to add that i know the commands for reverse dns is Nslookup or dig -x followed by the ip address but the thing how do i make to take the ip address from various files and format it.
Hey thanks for the reply but i am not aware how to use the system function to dig my ip from the previous result.....can you enlighten me on that part cause i am having a tough time figuring out how to make the function grab the ip from the grep expression and give it to the reverse dns process.