Prevent resolv.conf from changing
This commit is contained in:
parent
592311f21e
commit
a2eaf0d865
|
@ -3952,6 +3952,10 @@ function configure_dns {
|
|||
echo 'search localdomain' >> /etc/resolv.conf
|
||||
echo "nameserver $NAMESERVER1" >> /etc/resolv.conf
|
||||
echo "nameserver $NAMESERVER2" >> /etc/resolv.conf
|
||||
|
||||
# prevent resolv.conf from changing
|
||||
chattr +i /etc/resolv.conf
|
||||
|
||||
echo 'configure_dns' >> $COMPLETION_FILE
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue