Public bug reported:

Symptoms
--------

If an lxc container named *mycontainer* runs, it is not accessible using
name *mycontainer.lxc*.

Causes
------

The lxc1 package provides the lxc-net.service which launch a dns-masq
process to act as dns providing name resolution to local lxc instances
using the .lxc domain.

This DNS is however not declared to systemd-resolved, and so .lxc names
do not work on a standard ubuntu install.

Proposed solution
-----------------

The lxc1 package should provide a /etc/systemd/resolved.conf.d/lxc.conf
with the following content::

  [Resolve]
  DNS=10.0.3.1
  Domains=~.lxc
  DNSSEC=false

ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: lxc1 2.0.8-0ubuntu1~17.04.2
Uname: Linux 4.10.16-041016-generic x86_64
ApportVersion: 2.20.4-0ubuntu4.1
Architecture: amd64
CurrentDesktop: GNOME
Date: Mon Jun 26 11:07:24 2017
InstallationDate: Installed on 2015-11-10 (593 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
SourcePackage: lxc
UpgradeStatus: Upgraded to zesty on 2017-02-25 (120 days ago)
defaults.conf:
 lxc.network.type = veth
 lxc.network.link = lxcbr0
 lxc.network.flags = up
 lxc.network.hwaddr = 00:16:3e:xx:xx:xx

** Affects: lxc (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug zesty

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1700500

Title:
  lxc-net incompatible with systemd-resolved

Status in lxc package in Ubuntu:
  New

Bug description:
  Symptoms
  --------

  If an lxc container named *mycontainer* runs, it is not accessible
  using name *mycontainer.lxc*.

  Causes
  ------

  The lxc1 package provides the lxc-net.service which launch a dns-masq
  process to act as dns providing name resolution to local lxc instances
  using the .lxc domain.

  This DNS is however not declared to systemd-resolved, and so .lxc
  names do not work on a standard ubuntu install.

  Proposed solution
  -----------------

  The lxc1 package should provide a
  /etc/systemd/resolved.conf.d/lxc.conf with the following content::

    [Resolve]
    DNS=10.0.3.1
    Domains=~.lxc
    DNSSEC=false

  ProblemType: Bug
  DistroRelease: Ubuntu 17.04
  Package: lxc1 2.0.8-0ubuntu1~17.04.2
  Uname: Linux 4.10.16-041016-generic x86_64
  ApportVersion: 2.20.4-0ubuntu4.1
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Mon Jun 26 11:07:24 2017
  InstallationDate: Installed on 2015-11-10 (593 days ago)
  InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
  SourcePackage: lxc
  UpgradeStatus: Upgraded to zesty on 2017-02-25 (120 days ago)
  defaults.conf:
   lxc.network.type = veth
   lxc.network.link = lxcbr0
   lxc.network.flags = up
   lxc.network.hwaddr = 00:16:3e:xx:xx:xx

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1700500/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to