Fixed reset of dns config after reboot
This commit is contained in:
@@ -13,8 +13,9 @@ ufw allow 10000/udp > $OUTPUT 2>&1
|
||||
echo "y" | ufw enable > $OUTPUT 2>&1
|
||||
|
||||
##config dns
|
||||
mv /etc/resolv.conf /etc/resolv.conf.bck > $OUTPUT 2>&1
|
||||
echo "nameserver $intip" > /etc/resolv.conf
|
||||
printf '%s\n' '#Internal dns server' "nameserver $intip" '#Other dns server(s)' > /etc/resolvconf/resolv.conf.d/head
|
||||
sed -i -e '/hosts:/c\\hosts: files mdns4_minimal dns' /etc/nsswitch.conf
|
||||
|
||||
|
||||
##config jitsi
|
||||
systemctl stop jitsi-videobridge2 > $OUTPUT 2>&1
|
||||
|
||||
Reference in New Issue
Block a user