Hi Patrik, >If you use ConnMan with either patch of yours applied, using the DNS >servers for the primary nfsroot interface will always work properly, >even for any other Bluetooth or WiFi network, right?
When we run ConnMan in this way, we only have a network connection in eth0, but it does work via BT or WiFi as well. >So your use of ConnMan is either or both: >- tethering of other interfaces >- connecting other interfaces but using the primary nfsroot interface > nameservers The primary use case is to keep ConnMan running so that in OSMC users can still configure Bluetooth connections or WiFi adapters with a unified interface (and we can support it with a single API). ConnMan is configured to ignore eth0 when nfsroot is active because the connection has been configured as a kernel command line parameter. Sam ________________________________________ From: connman <connman-boun...@connman.net> on behalf of Patrik Flykt <patrik.fl...@linux.intel.com> Sent: 07 September 2015 14:20 To: connman@connman.net Subject: Re: [PATCH] resolver: allow writing to /etc/resolv.conf to be disabled Hi, On Mon, 2015-09-07 at 12:40 +0000, Sam Nazarko wrote: > We do not need DNS on other interfaces when ConnMan is running on an > nfsroot. We cannot tether as eth0 is ignored, so this is less of a > concern for us. If you use ConnMan with either patch of yours applied, using the DNS servers for the primary nfsroot interface will always work properly, even for any other Bluetooth or WiFi network, right? Or you use ConnMan only for tethering Bluetooth and WiFi? > For now, DNS is not handled by ConnMan properly so we get a > blank /etc/resolv.conf with 'Generated by Connection Manager' which > will overwrite our /etc/resolv.conf which was previously populated > from procfs. You are running connman with the --nodnsproxy option with no networks connected when the resolv.conf file contains only the "# Generated by Connection Manager" line. If you connect a network using ConnMan, it will overwrite the nameserver information in /etc/resolv.conf with the information obtained from DHCP for the newly connected network... This without either of your patch applied, of course. So your use of ConnMan is either or both: - tethering of other interfaces - connecting other interfaces but using the primary nfsroot interface nameservers Is this what is happening? > I have submitted an alternate patch which allows /etc/resolv.conf to > be saved in another location Yes, I saw them, thanks for both variants. After I have figured out what OSMC is up to, there is perhaps an optimal way of making this work well for both OSMC and the rest of the "road warrior" setups. Cheers, Patrik _______________________________________________ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman _______________________________________________ connman mailing list connman@connman.net https://lists.connman.net/mailman/listinfo/connman