Added some convenience scripts
This commit is contained in:
4
update-dns.sh
Executable file
4
update-dns.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
dns=$(nslookup.exe www.google.com 2>&1 | grep "Address:" | awk '{print $2}' | tr -d '\r')
|
||||
printf "nameserver %s\n" "$dns" | tee /etc/resolv.conf
|
||||
Reference in New Issue
Block a user