Skip to content

Commit

Permalink
Update unbound-manager.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Strong-Foundation authored Dec 24, 2024
1 parent 31dca4c commit 43d8402
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions unbound-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -369,15 +369,15 @@ else
fi
# Update root hints
if [ -f "${UNBOUND_ROOT_HINTS}" ]; then
curl ${UNBOUND_ROOT_SERVER_CONFIG_URL} -o ${UNBOUND_ROOT_HINTS}
curl "${UNBOUND_ROOT_SERVER_CONFIG_URL}" -o ${UNBOUND_ROOT_HINTS}
fi
# Update Host List
if [ -f "${UNBOUND_CONFIG_HOST}" ]; then
rm -f ${UNBOUND_CONFIG_HOST}
curl "${UNBOUND_CONFIG_HOST_URL}" -o ${UNBOUND_CONFIG_HOST_TMP}
sed -i -e "s_.*_0.0.0.0 &_" ${UNBOUND_CONFIG_HOST_TMP}
curl "${UNBOUND_CONFIG_HOST_URL}" -o "${UNBOUND_CONFIG_HOST_TMP}"
sed -i -e "s_.*_0.0.0.0 &_" "${UNBOUND_CONFIG_HOST_TMP}"
grep "^0\.0\.0\.0" "${UNBOUND_CONFIG_HOST_TMP}" | awk '{print "local-data: \""$2" IN A 0.0.0.0\""}' >"${UNBOUND_CONFIG_HOST}"
rm -f ${UNBOUND_CONFIG_HOST_TMP}
rm -f "${UNBOUND_CONFIG_HOST_TMP}"
fi
;;
esac
Expand Down

0 comments on commit 43d8402

Please sign in to comment.