Good day,
I got the need to fix the DNS query flooding and to deploy systemd-resolved, BUT that means I need to find a different way to inject the LXC's search domains and DNS server. I know what I all have to modify/change, but before I go on that endeavour, I'm wondering what others are doing, as I hoped that there is/was a method to keep the addition of the DNS server and search domains from the PVE side as/when/where I create the containers, but that it doesn't overwrite/re-create the /etc/resolv.conf but have the information written in a different place for systemd-resolved to get it's configuration to use those paramters.
The method I (so far small scale by hand) had done:
I got the need to fix the DNS query flooding and to deploy systemd-resolved, BUT that means I need to find a different way to inject the LXC's search domains and DNS server. I know what I all have to modify/change, but before I go on that endeavour, I'm wondering what others are doing, as I hoped that there is/was a method to keep the addition of the DNS server and search domains from the PVE side as/when/where I create the containers, but that it doesn't overwrite/re-create the /etc/resolv.conf but have the information written in a different place for systemd-resolved to get it's configuration to use those paramters.
The method I (so far small scale by hand) had done:
- touch /etc/.pve-ignore.resolv.conf
- rm /etc/resolv.conf
- ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
- vi /etc/systemd/resolved.conf -> adding the DNS server etc.