diff --git a/JIB/conf.sh b/JIB/conf.sh index bf1939e..0e8aff6 100644 --- a/JIB/conf.sh +++ b/JIB/conf.sh @@ -25,8 +25,8 @@ echo "snd_aloop" >> /etc/modules modprobe snd_aloop > $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 jibri systemctl stop jibri diff --git a/JIB/generic.pkg.list b/JIB/generic.pkg.list index 5de08f8..ae87241 100644 --- a/JIB/generic.pkg.list +++ b/JIB/generic.pkg.list @@ -1 +1 @@ - jibri google-chrome-stable ffmpeg openjdk-11-jre-headless adoptopenjdk-8-hotspot ufw unzip \ No newline at end of file + jibri google-chrome-stable ffmpeg openjdk-11-jre-headless adoptopenjdk-8-hotspot ufw unzip resolvconf \ No newline at end of file diff --git a/JVB/conf.sh b/JVB/conf.sh index e5f0790..88153e7 100644 --- a/JVB/conf.sh +++ b/JVB/conf.sh @@ -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 diff --git a/JVB/generic.pkg.list b/JVB/generic.pkg.list index e470457..381fa16 100644 --- a/JVB/generic.pkg.list +++ b/JVB/generic.pkg.list @@ -1 +1 @@ -jitsi-videobridge2 ufw \ No newline at end of file +jitsi-videobridge2 ufw resolvconf \ No newline at end of file