# Add options to /etc/resolv.conf in pxc/haproxy

**URL:** <https://forums.percona.com/t/add-options-to-etc-resolv-conf-in-pxc-haproxy/18396>\
**Category:** Percona XtraDB Cluster\
**Created:** [November 6, 2022, 7:34am UTC](https://forums.percona.com/t/add-options-to-etc-resolv-conf-in-pxc-haproxy/18396 "2022-11-06T07:34:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlevi](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mlevi](https://forums.percona.com/u/mlevi)\
**Post date:** [November 6, 2022, 7:34am UTC](https://forums.percona.com/t/add-options-to-etc-resolv-conf-in-pxc-haproxy/18396/1 "2022-11-06T07:34:11Z")

</div>

Hello, I have problem with random restarting of haproxy pod due to fail probe (Readiness probe failed/reading initial communication packet’, system error: 2/Lost connection to MySQL server at ‘reading initial communication packet’, system error: 2), This happen about 30-40 times per day. I think it problem related to dns resolve race in pods when client connects, sometimes I got very slow dns resolving.  
I would like to add single-request-reopen to /etc/resolv.conf to pxc and haproxy pods, but how can I do it with operator config ?

---

<div class="post-metadata">

**Author:** ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)\
**Post date:** [November 8, 2022, 4:05pm UTC](https://forums.percona.com/t/add-options-to-etc-resolv-conf-in-pxc-haproxy/18396/2 "2022-11-08T16:05:53Z")

</div>

Hello, I am not sure there is an easy way to do that and also not sure it will actually solve your problem. Have you considered running some dns caching solution instead?
