daltux on Nostr: I believe you could let #NetworkManager set /etc/resolv.conf with data it receives ...
I believe you could let #NetworkManager set /etc/resolv.conf with data it receives from DHCP for each connection. Removing the symlink, or pointing it to /run/NetworkManager/no-stub-resolv.conf, and then systemctl restart NetworkManager.service would do it. Maybe you also have to change /etc/NetworkManager/NetworkManager.conf before that. For details, see NetworkManager.conf manual page on options dns and rc-manager.
#Debian #systemd
Published at
2025-04-09 19:20:55Event JSON
{
"id": "230197b7618f47086afc43f16d9d819dd778c28e93d6d003ea9af209d27c1691",
"pubkey": "1914c0dc98bbb684255b3ceb6c2d56b9563144f0e25d8feb9b41cb1cc8c94a86",
"created_at": 1744226455,
"kind": 1,
"tags": [
[
"p",
"032df67da67eebbd99f8c8530c5e071a20e9ac461c4bd5b82b009608dd7dc628",
"wss://relay.mostr.pub"
],
[
"e",
"45071d606e5dbbd89397ddf5d098d268f2ffa5d8996b441b168a161db9743755",
"wss://relay.mostr.pub",
"reply"
],
[
"t",
"networkmanager"
],
[
"t",
"debian"
],
[
"t",
"systemd"
],
[
"proxy",
"https://snac.daltux.net/daltux/p/1744226455.237702",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.mostr.pub"
]
],
"content": "I believe you could let #NetworkManager set /etc/resolv.conf with data it receives from DHCP for each connection. Removing the symlink, or pointing it to /run/NetworkManager/no-stub-resolv.conf, and then systemctl restart NetworkManager.service would do it. Maybe you also have to change /etc/NetworkManager/NetworkManager.conf before that. For details, see NetworkManager.conf manual page on options dns and rc-manager.\n\n#Debian #systemd\n",
"sig": "36891a019ab338eec23dd3e65a5646171581eaad4b42bfc785179d67b1a341680e058b9507ae3cfd541354ec53eb583302bcb2801a36733990e5768c612e09ee"
}