allow changes to resolv.conf

This commit is contained in:
Bob Mottram 2016-10-17 18:30:12 +01:00
parent 3ee9c30cf4
commit cadb6ca46e
1 changed files with 4 additions and 0 deletions

View File

@ -164,6 +164,10 @@ function configure_dns {
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
return
fi
# allow changes to resolv.conf
chattr -i /etc/resolv.conf
echo 'domain localdomain' > /etc/resolv.conf
echo 'search localdomain' >> /etc/resolv.conf
echo "nameserver $NAMESERVER1" >> /etc/resolv.conf