Hi Patrik,

I am happy with this solution to write to /var/run/connman/resolv.conf. I am 
happy to submit a patch for this as well as a revised systemd service unit with 
an ExecStartPre= entry to create the symlink before starting ConnMan. Please 
let me know if you will accept this. 

Our current implementation actually calls a script before launching ConnMan to 
run some sanity checks and evaluate whether we want ConnMan's resolv.conf or 
not, but revising the systemd unit is probably the best method to maintain 
immediate compatibility and provide an entry point for other distributions to 
change this behaviour. 

Sam
________________________________________
From: connman <[email protected]> on behalf of Patrik Flykt 
<[email protected]>
Sent: 11 September 2015 07:17
To: [email protected]
Subject: Re: [PATCH] resolver: allow writing to /etc/resolv.conf to be disabled

        Hi,

On Fri, 2015-09-11 at 01:07 +0000, Sam Nazarko wrote:

> 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).

Thanks for the info.

The above means that in the OSMC configuration the DNS servers from the
kernel command line, kernel variables or other static entries written to
resolv.conf also satisfy the name lookups done while using Bluetooth or
WiFi.

I was thinking that this leads to a solution like:
- always write ConnMan's resolv.conf entries to the hereafter
  "well-known" location at /var/run/connman/resolv.conf
- by default replace /etc/resolv conf with a symlink to ConnMan's own
  resolv.conf file
- prevent the creation of the symlink by defining a command line
  option and main.conf variable.

By not making ConnMan's resolv.conf location configurable keeps
resolv.conf handling distribution agnostic and ConnMan specific while
being in line with what systemd-resolved offers. The two latter points
above are there only to keep the current status quo.

Cheers,

        Patrik


_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to