Solved

how do I grep for a specfic DNS record in a directory

Posted on 2014-11-07
3
44 Views
Last Modified: 2016-01-03
Hi
I am trying to figure out a way to grep or find a specific DNS record in the directory where I am at.

For example:
I have a bunch of txt files that end with .db
I would like to search in each file looking for this DNS record. I am looking for this

richsark IN A 100.100.100.1

how would grep for this?

BTW ...I am using a Macbook Pro

Thanks
0
Comment
Question by:richsark
3 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 40429949
grep "richsark IN A 100.100.100.1" *.db
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Utilizing an array to gracefully append to a list of EmailAddresses
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question