Assumed DNS resolver bug under AlmaLinux 8 #118
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
See
hetzneronline/installimage@e15b5eab57/functions.sh (L3000)On a RHEL compatible OS
/etc/resolv.confis a file, not a symlink. On these OSinstallimagewrites the DNS entries only to/etc/resolv.conf, not to the NetworkManager. If the NetworkManager reloads its profile it rewrites/etc/resolv.confwith the content of either/run/NetworkManager/resolv.confor/run/NetworkManager/no-stub-resolv.conf.Because
installimagedoesn't update those files the resulting/etc/resolv.confis empty.Effect: After first reload of the network profile DNS fails due to missing settings.
Observed on AlmaLinux 8.10 with provided OS images and
installimage. From the code I conclude that other RHEL-compatible OS may be affected, too.How to reproduce:
hostnamectl set-hostname my.domain.tld/etc/resolv.confis wiped out and DNS failsSnippet from
/installimage.debug:Thank you for your report. This currently affects Alma/Rocky 8 and 19 images which now also use NetworkManager, while the required DNSx entries are only generated for 9:
https://github.com/hetzneronline/installimage/blob/master/network_config.functions.sh#L315