pxe-common: add dns domain name in resolv.conf
Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
parent
38b81f0384
commit
7b5d876742
@ -45,6 +45,9 @@ run_hook () {
|
|||||||
if [[ "${IPV4DNS1}" != "0.0.0.0" ]]; then
|
if [[ "${IPV4DNS1}" != "0.0.0.0" ]]; then
|
||||||
echo "nameserver ${IPV4DNS1}" >> /etc/resolv.conf
|
echo "nameserver ${IPV4DNS1}" >> /etc/resolv.conf
|
||||||
fi
|
fi
|
||||||
|
if [[ -n "${DNSDOMAIN}" ]]; then
|
||||||
|
echo "search ${DNSDOMAIN}" >> /etc/resolv.conf
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user