Hi all,
I might have overlooked if this was posted before, but just wanted to share.
But when deploying a new LXC with the rocky10 (20251001) -template, the following is experienced when setting it to use host dns domain and server:
- /etc/resolv.conf is only populated with the searchdomain.
Manually adding a/the dns servers sticks until a reboot is performed, then again as above only the searchdomain is present in it.
After some searching i have found a workaround, by introducing a configuration-file in /etc/NetworkManager/conf.d/
00-dns.conf
Then the resulting /etc/resolv.conf is filled correctly:
Questions i have:
Is this a template -issue, a general Rocky10 change in how NetworkManager works, or maybe a/the way in which ProxMox injects these settings ?
- Glowsome
Update: similar behavior is seen when a Rocky 9 to 10 migration/upgrade is performed.
I might have overlooked if this was posted before, but just wanted to share.
But when deploying a new LXC with the rocky10 (20251001) -template, the following is experienced when setting it to use host dns domain and server:
- /etc/resolv.conf is only populated with the searchdomain.
Code:
# Generated by NetworkManager
search mydomain.tld
Manually adding a/the dns servers sticks until a reboot is performed, then again as above only the searchdomain is present in it.
After some searching i have found a workaround, by introducing a configuration-file in /etc/NetworkManager/conf.d/
00-dns.conf
Code:
[main]
dns=none
Then the resulting /etc/resolv.conf is filled correctly:
Code:
# --- BEGIN PVE ---
search mydomain.tld
nameserver x.x.x.x
nameserver y.y.y.y
# --- END PVE ---
Questions i have:
Is this a template -issue, a general Rocky10 change in how NetworkManager works, or maybe a/the way in which ProxMox injects these settings ?
- Glowsome
Update: similar behavior is seen when a Rocky 9 to 10 migration/upgrade is performed.
Last edited: