Jump to content

How to make a quick dns reverse check on a /24 in bash


Brain 0verride

Recommended Posts

Sometime when you need to map networks, for example when you gain access to a LAN  server without security tools on it, it can be useful to retrieve reverses dns for a specified internal PI. You can do it directly in bash with this short command line (example for 192.168.1.0/24) :  seq 1 254 |xargs -I{} -n 1 host 192.168.1.{}

It also works fine on a public PI of course. Don't hesitate to share your tips too :)

--
Christophe Casalegno
https://twitter.com/Brain0verride
 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...