~ $ 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 18.104.22.168 .
But now I discovered that dns settings seem to appear twice:
~ $ nmcli connection show Auto\ JinJiangHotels | grep -i dns ipv4.dns: 22.214.171.124 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: 126.96.36.199 IP4.DNS: 188.8.131.52
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 184.108.40.206 is still not being used although nmcli con show command shows ipv4.dns being set to 220.127.116.11.
dns lookup works as expected if I specify 18.104.22.168 directly:
~ $ host maps.google.com 22.214.171.124 Using domain server: Name: 126.96.36.199 Address: 188.8.131.52#53 Aliases: maps.google.com has address 184.108.40.206 maps.google.com has IPv6 address 2404:6800:4005:804::200e