# Extract A, MX, and NS records based on a field

**URL:** <https://discuss.elastic.co/t/extract-a-mx-and-ns-records-based-on-a-field/228005>\
**Category:** Logstash\
**Created:** [April 14, 2020, 10:20pm UTC](https://discuss.elastic.co/t/extract-a-mx-and-ns-records-based-on-a-field/228005 "2020-04-14T22:20:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mnrdammu](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@mnrdammu](https://discuss.elastic.co/u/mnrdammu)\
**Post date:** [April 14, 2020, 10:20pm UTC](https://discuss.elastic.co/t/extract-a-mx-and-ns-records-based-on-a-field/228005/1 "2020-04-14T22:20:27Z")

</div>

Hi All,  
Is there a way to get A,MX and NS records based on a field ( which is essentially a domain name for eg: [example.com](http://example.com)) . I know we have logstash-dns-filter, but it can provide only "A" records. I would like to get other dns records like (MX,NS etc ) also.

Any suggestions will be really helpful.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 12, 2020, 10:20pm UTC](https://discuss.elastic.co/t/extract-a-mx-and-ns-records-based-on-a-field/228005/2 "2020-05-12T22:20:35Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
