allow changes to resolv.conf
This commit is contained in:
parent
3ee9c30cf4
commit
cadb6ca46e
|
@ -164,6 +164,10 @@ function configure_dns {
|
||||||
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
|
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# allow changes to resolv.conf
|
||||||
|
chattr -i /etc/resolv.conf
|
||||||
|
|
||||||
echo 'domain localdomain' > /etc/resolv.conf
|
echo 'domain localdomain' > /etc/resolv.conf
|
||||||
echo 'search localdomain' >> /etc/resolv.conf
|
echo 'search localdomain' >> /etc/resolv.conf
|
||||||
echo "nameserver $NAMESERVER1" >> /etc/resolv.conf
|
echo "nameserver $NAMESERVER1" >> /etc/resolv.conf
|
||||||
|
|
Loading…
Reference in New Issue