DHCP and /etc/resolv.conf

Simon Fels simon.fels at canonical.com
Tue Jan 17 16:05:21 UTC 2017


On 17.01.2017 14:18, Zygmunt Krynicki wrote:
> Quick grep tells me that no interface currently relates to "resolv.conf" file

Actually you shouldn't allow access to /etc/resolv.conf but to
/run/resolvconf/ which the network-manager interface allows as the only
one so far.

regards,
Simon

> On Tue, Jan 17, 2017 at 12:01 AM, Joe Coates
> <jcoates at extremenetworks.com> wrote:
>> Is there a current slot interface which allows write access to /etc/resolv.conf?
>>
>> Thanks,
>> Joe Coates
>>
>> ________________________________________
>> From: snapcraft-bounces at lists.snapcraft.io <snapcraft-bounces at lists.snapcraft.io> on behalf of Mark Shuttleworth <mark at ubuntu.com>
>> Sent: Monday, January 16, 2017 4:58:45 PM
>> To: Snapcraft
>> Subject: Re: DHCP and /etc/resolv.conf
>>
>> On 16/01/17 16:39, Joe Coates wrote:
>>
>> I'm snapping an app which includes a DHCP client replacement.   Ultimately it wants to update/replace /etc/resolv.conf.     My snap is connected to all the "network" interfaces available in my ubuntu-core, but none seem to allow write access to this file.  Shouldn't an interface like "network-control" allow write access to /etc/resolv.conf ?
>>
>> I think /etc/resolv.conf is generated from a number of sources, but yes, it should be possible to influence it.
>>
>> Mark
>>
>> ________________________________
>>
>> DISCLAIMER:
>> This e-mail and any attachments to it may contain confidential and proprietary material and is solely for the use of the intended recipient. Any review, use, disclosure, distribution or copying of this transmittal is prohibited except by or on behalf of the intended recipient. If you have received this transmittal in error, please notify the sender and destroy this e-mail and any attachments and all copies, whether electronic or printed.
>>
>>
>> --
>> Snapcraft mailing list
>> Snapcraft at lists.snapcraft.io
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
> 





More information about the Snapcraft mailing list