dig, the first DNS lookup utility I ever used back in the day. Had now idea how it worked, kind of just copied and pasted code, but thought it was so cool to get an IP address of a website.
Going to end this week with the last DNS lookup tools released with BIND9. I’m sure there are other DNS lookup tools, and I know the Internet Systems Consortium has various other tools for you to use. Today we’re looking at
Continuing with the theme, I decided to continue the networking utilities by covering
nslookup. I’ll finish this week off by covering
digand doing a comparison between the two. Just like
nslookupwas developed by the Internet Systems Consortium and is released with BIND9.
As I continue down the path of trying to transition into InfoSec and continuing to study for my OSCP exam, I thought I’d take advantage of what I’m doing here to make this a study habit for myself. I thought about starting with a deep dive in and cover
nc, but that seems to be really diving in the deep-end. I’ll start with
hostand see where this takes me.
Probably should have done this in opposite order, as a precursor to the
uniqcommand. But who cares. If you’ve follwed yesterday’s post, then you’ve had some exposure to the
sortcommand. Let’s dive into it and get some more use out of it!
Finding uniquiness in a list! Remove duplicates, print duplicated, show only duplicates…the possibilities are endless! Well, actually there is a finite number of posibilities, but that involves combinatorics. And I’m too lazy for that right now. Anyway…
uniqis pretty slick. Check it out!
If you saw yesterday’s Command of the Day about
headthen you prolly saw this coming.
I think it’s safe to say that
headwas one of the first Unix commands I learned. Definitely up there with
rm. Although, I find myself using its converse utility
tailmuch more often, digging into this reminded me how useful the
headcommand actually is. Even if you’ve used this a million times before, I hope you can gain something out of this.
wccommand (or word-count), is another one of those gems that I find myself using more often in scripts than I expect. The initial release was in November of ‘71 (48 years ago!) and a release has been part of the Free Software Foundation since 1985. Perhaps even more amazing, is that it continues to be developed today! At this time of writing
wchas had three commits directly related to it within the past year.