1
0
Fork 0
mirror of https://github.com/SinTan1729/random.git synced 2024-12-25 20:58:37 -06:00

fix: Case for multiple provided DNS resolvers

This commit is contained in:
Sayantan Santra 2024-09-04 16:30:34 +02:00
parent 9437266fb2
commit 58656581db
Signed by: SinTan1729
GPG key ID: EB3E68BFBA25C85F

View file

@ -4,7 +4,7 @@
# don't work with custom resolvconf setups
# Get the DNS resolver provided by the network
DNS=$(nmcli -f IP4.DNS dev show wlan0 | awk '{print $2}')
DNS=$(nmcli -f IP4.DNS dev show wlan0 | awk '{print $2}' | head -1)
# Temporarily put the DNS resolver in place
echo "Need sudo permission to work with /etc/resolv.conf"