lxc-net incompatible with systemd-resolved
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
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/
[Resolve]
DNS=10.0.3.1
Domains=~.lxc
DNSSEC=false
ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: lxc1 2.0.8-0ubuntu1~
Uname: Linux 4.10.16-
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
Changed in lxc (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
/etc/systemmd/ resolved. conf
DNS=10.0.3.1
Domains=lxc
recheck cat /etc/resolv.conf
it should have added a search for lxc with nameserver still at 127.0.0.53