| Summary: | Global DNS fallback mechanism not present in poky distro | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Cristian Iorga <cristian.iorga> |
| Component: | connectivity | Assignee: | Unassigned <unassigned> |
| Status: | ACCEPTED --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Medium+ | CC: | dvhart, juro.bystricky, lists.volker, meta.mr.watcher, meta.watcher, randy.macleod, richard.purdie, ross.burton, roxana.ciobanu, tgamblin, thomas |
| Version: | 1.6 | ||
| Target Milestone: | 6.99 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Yes (doc changes required) | |
| Bug Depends on: | |||
| Bug Blocks: | 6278 | ||
|
Description
Cristian Iorga
2013-10-07 09:24:38 UTC
In case of images with connman present as network manager, for the moment, while a technical solution for global DNS fallback exists, it is non-functional due to a bug in connman as of version 1.17. There is a chance that v1.19 or later will fix this. This needs further tracking of connman next releases in order to decide integration milestone. Connman v1.19 has been released and according to release notes, global fallback DNS mechanism has been fixed. Patch sent for review. Investigation started AR taken to remember what happened with Cristi's patch and why it didn't get merged. The patch is here: http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=ciorga/YB5322&id=56097ca551d3d752f3472b08bb0bde258e01330b (In reply to comment #7) > The patch is here: > http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=ciorga/ > YB5322&id=56097ca551d3d752f3472b08bb0bde258e01330b The branch has been removed. Does this defect still valid? @Cristian Kai, it's still and issue. Can you resend the patch? It is not needed for systemd. systemd provides /etc/resolv.conf which links to /run/systemd/resolve/resolv.conf contains fall back namespace servers. nameserver 1.1.1.1 nameserver 8.8.8.8 nameserver 1.0.0.1 # Too many DNS servers configured, the following entries may be ignored. nameserver 8.8.4.4 nameserver 2606:4700:4700::1111 nameserver 2001:4860:4860::8888 nameserver 2606:4700:4700::1001 nameserver 2001:4860:4860::8844 The patch of connman is not needed for sysvinit either. Package connman-conf provides config file /var/lib/connman/wired.config. In the config file, nameserver 8.8.8.8 has been set. $ cat /var/lib/connman/wired.config [global] Name = Wired Description = Wired network configuration [service_ethernet] Type = ethernet IPv4 = MAC = 52:54:00:12:34:56 Nameservers = 8.8.8.8 @Randy @Richard, I think it is better to install a existing package to image rather than apply a new patch to connman to provide same function. And this patch could be dropped. What's your opinions? Thanks. (In reply to comment #12) > The patch of connman is not needed for sysvinit either. Package connman-conf > provides config file /var/lib/connman/wired.config. In the config file, > nameserver 8.8.8.8 has been set. > Oops. connman-conf only patches qemu machines. For provisioning a global DNS in the general case, both systemd and connman support this now. So if a productised deployment needs a static configuration, that works. The more specific case which triggered this bug in the first place was an image booted inside a qemu that is using tap networking. In this case it appears that if networkd is being used then a fallback DNS is already present, so this only really impacts tap-on-sysvinit. As such I argue that we demote this from high to m+ and see what can be done in the 3.1 cycle. I have wondered if we should support using dnsmasq to setup a proper networking environment for the guests with working DHCP and DNS proxies. *** Bug 6278 has been marked as a duplicate of this bug. *** Bulk move of 64 bugs to 4.3 M3 after a quick review. If a bug is actually fixed, please add a commit link and resolve it. -- Randy for YP bug team. Moved to M4. Mistakenly moved to M4. Since it's an enhancement, it should be 5.0 M1. Bulk move of 52 5.0-M1 bugs to M2. Bulk move of bugs owned by "unassigned" from 5.0-M2 to 5.0-M3. @Ross: what do you think is the best solution for this? I always fix this when using qemu for testing by: echo "nameserver 8.8.8.8" > /etc/resolv.conf Which of course I like to get rid of. |