chore: fallback echo defined nameserver

Update DNS configuration handling in entrypoint script.
This commit is contained in:
DaanSelen
2026-01-03 01:20:02 +01:00
committed by GitHub
parent 5486b3aaf6
commit dd6ffa694f

View File

@@ -221,8 +221,9 @@ set_envvars() {
start_and_monitor() {
printf "\n---------------------- STARTING CORE -----------------------\n"
# Regenerate the resolvconf
/usr/sbin/resolvconf -u
# Due to resolvconf resetting the DNS we echo back the one we defined (or fallback to default).
resolvconf -u
echo "nameserver ${global_dns}" >> /etc/resolv.conf
# Due to some instances complaining about this, making sure its there every time.
mkdir -p /dev/net