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

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.

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.

1 Like