connmanctl set nameservers
When connmanctl borks up whatever symlink /etc/resolv.conf
points to this week, particularly with ipv6 nonsense, you can easily set it back to the real nameservers:
# select config id of currently connected network current="$( connmanctl services | awk '/^[^ ]/ && $1~/R/{print $3}' )" connmanctl config "${current}" --nameservers 192.168.1.10 192.168.1.11
Or you could just clobber the resolv.conf with a real file and not a symlink to /etc/connman/resolv.conf
. Crap like this makes me miss wicd although I'm sure it had its problems too.
Comments