# Disable IPv6 / / AAAA lookups

**URL:** <https://discuss.elastic.co/t/disable-ipv6-aaaa-lookups/341006>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 17, 2023, 11:54am UTC](https://discuss.elastic.co/t/disable-ipv6-aaaa-lookups/341006 "2023-08-17T11:54:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![YvorL](https://avatars.discourse-cdn.com/v4/letter/y/9fc348/32.png) [@YvorL](https://discuss.elastic.co/u/YvorL)\
**Post date:** [August 17, 2023, 11:54am UTC](https://discuss.elastic.co/t/disable-ipv6-aaaa-lookups/341006/1 "2023-08-17T11:54:25Z")

</div>

Hi,  
I found out that in my GCP stack, my internal DNS setup is costing more than I anticipated. Unfortunately, it seems that there's a lookup cache issue, however, if I could prevent Filebeat using IPv6 / AAAA lookups (e.g., like in Logstash I could use `-Djava.net.preferIPv4Stack=true`) I could avoid 1/5th of the bill.  
Thank you!  
P.s.: At the moment I'm more interested in solutions for Filebeat than workarounds with messing in the OS 🙂

---

<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:** [September 14, 2023, 1:54pm UTC](https://discuss.elastic.co/t/disable-ipv6-aaaa-lookups/341006/2 "2023-09-14T13:54:57Z")

</div>

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