?
Solved

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

Posted on 2014-11-07
3
Medium Priority
?
56 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 68

Accepted Solution

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Utilizing an array to gracefully append to a list of EmailAddresses
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

762 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