# If 2 servers are being runing DNS servers, will this reflect in the /etc/resolv.conf?

**URL:** <https://forum.pritunl.com/t/if-2-servers-are-being-runing-dns-servers-will-this-reflect-in-the-etc-resolv-conf/3791>\
**Category:** Pritunl VPN\
**Tags:** pritunl\
**Created:** [May 16, 2026, 7:24am UTC](https://forum.pritunl.com/t/if-2-servers-are-being-runing-dns-servers-will-this-reflect-in-the-etc-resolv-conf/3791 "2026-05-16T07:24:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![macsire](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/m/8e7dd6/32.png) [@macsire](https://forum.pritunl.com/u/macsire)\
**Post date:** [May 16, 2026, 7:24am UTC](https://forum.pritunl.com/t/if-2-servers-are-being-runing-dns-servers-will-this-reflect-in-the-etc-resolv-conf/3791/1 "2026-05-16T07:24:03Z")

</div>

I have 2 servers where 1 is using foo.vpn and the other being layer.vpn under 1 EC2 instance. In my EC2 instance, the 1st server adds foo.vpn in the `search` but layer.vpn is not being added into the array. If I modify `/etc/resolv.conf` it will revert the changes to the original. What can I do to keep my changes?

I add the domain to the following `sudo vi /etc/systemd/resolved.conf.d/vpn-dns.conf`.

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [May 17, 2026, 9:36pm UTC](https://forum.pritunl.com/t/if-2-servers-are-being-runing-dns-servers-will-this-reflect-in-the-etc-resolv-conf/3791/2 "2026-05-17T21:36:50Z")

</div>

The client only uses the first DNS configuration when there are multiple profiles. If one profile disconnects it will shift to the next profile but there will only ever be one DNS configuration active.
