Added some convenience scripts

This commit is contained in:
Autumn Naber
2024-03-14 14:44:27 -07:00
parent 5a6d64d401
commit 67d73a4c71
3 changed files with 32 additions and 2 deletions

4
update-dns.sh Executable file
View 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