|
|
@ -397,12 +397,14 @@ function miaou_resolver() { |
|
|
|
|
|
|
|
if ! grep -q "nameserver $bridge" /etc/resolv.conf; then |
|
|
|
echo -n "customize resolv.conf from scratch with bridge=<$bridge>, resolver=<$resolver> ..." |
|
|
|
sudo chattr -i /etc/resolv.conf |
|
|
|
sudo tee /etc/resolv.conf &>/dev/null <<EOF |
|
|
|
# generated by miaou |
|
|
|
nameserver $bridge # LXD bridge |
|
|
|
nameserver $resolver # resolver |
|
|
|
EOF |
|
|
|
PREFIX="" echoinfo DONE |
|
|
|
sudo chattr +i /etc/resolv.conf |
|
|
|
else |
|
|
|
echo "customize resolv.conf already defined!" |
|
|
|
fi |
|
|
|