flush dns cache

pull/17/head
necro-nemesis 6 years ago
parent a6b74d1cbd
commit 467987f1ae

@ -602,12 +602,13 @@ function SaveTORAndVPNConfig()
Starting Lokinet background daemon process. Starting Lokinet background daemon process.
</div> </div>
<?php <?php
# $output = shell_exec('sudo /etc/init.d/dnsmasq stop'); $output = shell_exec('sudo /etc/init.d/dnsmasq stop');
echo "<pre><strong>$output</strong></pre>"; echo "<pre><strong>$output</strong></pre>";
$output = shell_exec('sudo /home/pi/loki-network/lokilaunch.sh start'); $output = shell_exec('sudo /home/pi/loki-network/lokilaunch.sh start');
echo "<pre><strong>$output</strong></pre>"; echo "<pre><strong>$output</strong></pre>";
/*sleep(5);*/ $output = shell_exec('sudo /etc/init.d/dnsmasq start');
$output = shell_exec('sudo dnsmasq --interface=wlan0 --bind-interfaces --dhcp-range=10.3.141.0,10.3.141.24,12h --conf-file=/etc/resolv.conf'); # sleep(5);
# $output = shell_exec('sudo dnsmasq --interface=wlan0 --bind-interfaces --dhcp-range=10.3.141.0,10.3.141.24,12h --conf-file=/etc/resolv.conf');
echo "<pre><strong>$output</strong></pre>"; echo "<pre><strong>$output</strong></pre>";
} elseif (isset($_POST['StopLokinet'])) { } elseif (isset($_POST['StopLokinet'])) {
?> ?>

Loading…
Cancel
Save