chore: fallback echo defined nameserver

Update DNS configuration handling in entrypoint script.
pull/1060/head
DaanSelen 2026-01-03 01:20:02 +01:00 committed by GitHub
parent 5486b3aaf6
commit dd6ffa694f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

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