~ $ lsb_release -a No LSB modules are available. Distributor ID: LinuxMint Description: Linux Mint 18 Sarah Release: 18 Codename: sarah ~ $ uname -r 4.4.0-21-generic ~ $ nmcli -v nmcli tool, version 1.2.0
Connected to wifi network using profile 'Auto JinJiangHotels':
~ $ nmcli device DEVICE TYPE STATE CONNECTION docker0 bridge connected docker0 wlan0 wifi connected Auto JinJiangHotels eth0 ethernet unavailable -- eth1 ethernet unavailable -- lo loopback unmanaged --
I wanted to change the DNS server due to the default one not being reachable. So I set the ipv4.dns property to 188.8.131.52 .
But now I discovered that dns settings seem to appear twice:
~ $ nmcli connection show Auto\ JinJiangHotels | grep -i dns ipv4.dns: 184.108.40.206 ipv4.dns-search: ipv4.dns-options: (default) ipv4.ignore-auto-dns: no ipv6.dns: ipv6.dns-search: ipv6.dns-options: (default) ipv6.ignore-auto-dns: no IP4.DNS: 220.127.116.11 IP4.DNS: 18.104.22.168
Question: What is the difference between ipv4.dns and IP4.DNS[*] ?
dns lookup still fails:
~ $ host maps.google.com ;; connection timed out; no servers could be reached
So I assume 22.214.171.124 is still not being used although nmcli con show command shows ipv4.dns being set to 126.96.36.199.
dns lookup works as expected if I specify 188.8.131.52 directly:
~ $ host maps.google.com 184.108.40.206 Using domain server: Name: 220.127.116.11 Address: 18.104.22.168#53 Aliases: maps.google.com has address 22.214.171.124 maps.google.com has IPv6 address 2404:6800:4005:804::200e