Commit 7b5d8767 authored by Christian Hesse's avatar Christian Hesse 😜 Committed by Gerardo Exequiel Pozzi
Browse files

pxe-common: add dns domain name in resolv.conf


Signed-off-by: Christian Hesse's avatarChristian Hesse <mail@eworm.de>
parent 38b81f03
......@@ -45,6 +45,9 @@ run_hook () {
if [[ "${IPV4DNS1}" != "0.0.0.0" ]]; then
echo "nameserver ${IPV4DNS1}" >> /etc/resolv.conf
fi
if [[ -n "${DNSDOMAIN}" ]]; then
echo "search ${DNSDOMAIN}" >> /etc/resolv.conf
fi
fi
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment