mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-25 12:58:35 -06:00
fix: Case for multiple provided DNS resolvers
This commit is contained in:
parent
9437266fb2
commit
58656581db
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue