Add clear dns util

This commit is contained in:
Joshua Harlow
2012-04-26 15:48:04 -07:00
parent e3d9712433
commit 0343aed23d

10
tools/clear-dns.sh Executable file
View 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