• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 62
  • Last Modified:

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

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
richsark
Asked:
richsark
1 Solution
 
woolmilkporcCommented:
grep "richsark IN A 100.100.100.1" *.db
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now