Sorry for the delay, but for the past week I always managed to drain the
battery while moving between locations and never got around to reproduce
the problem. (So, contrary to my original impression, it's not
persistent across reboots.)
On 2016-06-10 13:12, Patrik Flykt wrote:
On Fri, 2016-06-03 at 17:08 +0200, Sven Schwedas wrote:
> On 1.32 (possibly also older versions, haven't checked) I'm seeing an
> annoying problem: Search domains persist across networks and reboots
> and DHCP search domains of the currently active network are only
> appended. After roaming between a few networks, this creates an
> absolute mess of an /etc/resolv.conf. Is this intended behaviour? How
> can I disable this if so?
You must be running connmand with --nodnsproxy, right? The intended
behavior is that without dnsproxy only the current search domain gets
written into /etc/resolv.conf, so this behavior must be a bug.
Oh, sorry, yes.
main.conf:
[General]
AllowHostnameUpdates=false
DefaultAutoConnectTechnologies=ethernet,wifi
PreferredTechnologies=ethernet,wifi
SingleConnectedTechnology=true
This is 1.32 from upstream, i.e. not packaged by a distro?
Packaged by Arch Linux:
https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=pa...
Their only patch affects the polkit configuration, it's otherwise
upstream-ish.
Can you list
the search domains (Domains and Domains.Configuration from connmanctl
services XXXX) for each service and the resulting /etc/resolv.conf
when you move between networks?
First connected network after boot (ethernet):
Domains = [ ad.tao.at ]
Domains.Configuration = [ ]
=
# Generated by Connection Manager
search ad.tao.at ad.tao.at
nameserver 192.168.17.1
After disabling Ethernet and reconnecting to the same network via wifi,
no changes.
Putting the device into suspend to RAM and resuming at the second
location, connman connects to the local wifi:
Domains = [ shun.yaki-syndicate.de ]
Domains.Configuration = [ ]
=
# Generated by Connection Manager
search shun.yaki-syndicate.de ad.tao.at ad.tao.at
nameserver 192.168.10.1
"connmanctl services" only shows the wifi active, not ethernet nor the
old wifi-AP. Cycling rfkill doesn't change the output of either.
Suspend to RAM again, return to first location, put laptop on docking
station, power on; connman connects to ethernet:
Domains = [ ad.tao.at ]
Domains.Configuration = [ ]
=
# Generated by Connection Manager
search shun.yaki-syndicate.de ad.tao.at ad.tao.at
nameserver 192.168.17.1
Disconnect all, connect to a different wifi without search domains
configured:
Domains = [ ]
Domains.Configuration = [ ]
=
# Generated by Connection Manager
search shun.yaki-syndicate.de ad.tao.at ad.tao.at
nameserver 192.168.101.42
And from here on it seems I'm stuck with the broken resolvconf.
Switching to wifi, switching back to ethernet, … results in the same
broken resolvconf search entry.
==========
FWIW, the first two networks are using dnsmasq as DHCP server with the
following relevant configuration snippets:
# DNS domain
dhcp-option=15,"ad.tao.at"
domain=ad.tao.at
and
domain=shun.yaki-syndicate.de
Setting the search domain twice for the first network probably comes
from the slight misconfiguration I should fix at some point, but it
doesn't expain the retention.
--
Mit freundlichen Grüßen, / Best Regards,
Sven Schwedas, Systemadministrator
Mail/XMPP sven.schwedas(a)tao.at | Skype sven.schwedas
TAO Beratungs- und Management GmbH | Lendplatz 45 | A8020 Graz
https://software.tao.at | Tel +43 680 301 7167