Add clear dns util
This commit is contained in:
10
tools/clear-dns.sh
Executable file
10
tools/clear-dns.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash -x
|
||||
|
||||
echo "Clearing your dns"
|
||||
|
||||
for pid in `ps -elf | grep -i dnsmasq | grep nova | perl -le 'while (<>) { my $pid = (split /\s+/)[3]; print $pid; }'`
|
||||
do
|
||||
echo "Killing leftover nova dnsmasq process with process id $pid"
|
||||
kill -9 $pid
|
||||
done
|
||||
|
Reference in New Issue
Block a user