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
1 changed files with 1 additions and 1 deletions

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"