<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5322</bug_id>
          
          <creation_ts>2013-10-07 09:24:38 +0000</creation_ts>
          <short_desc>Global DNS fallback mechanism not present in poky distro</short_desc>
          <delta_ts>2026-07-09 15:18:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>connectivity</component>
          <version>1.6</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>ACCEPTED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>6.99</target_milestone>
          
          <blocked>6278</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Cristian Iorga">cristian.iorga</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>dvhart</cc>
    
    <cc>juro.bystricky</cc>
    
    <cc>lists.volker</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>roxana.ciobanu</cc>
    
    <cc>tgamblin</cc>
    
    <cc>thomas</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>37662</commentid>
    <comment_count>0</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-10-07 09:24:38 +0000</bug_when>
    <thetext>Global DNS fallback mechanism not present in poky distro.
In cases were for a specific BSP the network settings are not obtained via DHCP, but through static configuration provisioning, there is no mechanism put in place to configure a global fallback DNS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37665</commentid>
    <comment_count>1</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-10-07 09:31:04 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37666</commentid>
    <comment_count>2</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-10-07 09:34:56 +0000</bug_when>
    <thetext>This needs further tracking of connman next releases in order to decide integration milestone.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38128</commentid>
    <comment_count>3</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2013-10-22 13:10:19 +0000</bug_when>
    <thetext>Connman v1.19 has been released and according to release notes, global fallback DNS mechanism has been fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39770</commentid>
    <comment_count>4</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2014-01-13 13:56:29 +0000</bug_when>
    <thetext>Patch sent for review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44096</commentid>
    <comment_count>5</comment_count>
    <who name="Roxana Ciobanu">roxana.ciobanu</who>
    <bug_when>2014-06-19 11:24:41 +0000</bug_when>
    <thetext>Investigation started</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64170</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2016-07-19 16:27:42 +0000</bug_when>
    <thetext>AR taken to remember what happened with Cristi&apos;s patch and why it didn&apos;t get merged.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64202</commentid>
    <comment_count>7</comment_count>
    <who name="Juro Bystricky">juro.bystricky</who>
    <bug_when>2016-07-19 21:45:51 +0000</bug_when>
    <thetext>The patch is here:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=ciorga/YB5322&amp;id=56097ca551d3d752f3472b08bb0bde258e01330b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83866</commentid>
    <comment_count>8</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2019-05-21 02:22:02 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; The patch is here:
&gt; http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=ciorga/
&gt; YB5322&amp;id=56097ca551d3d752f3472b08bb0bde258e01330b

The branch has been removed. Does this defect still valid? @Cristian</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84078</commentid>
    <comment_count>9</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-06-06 14:52:26 +0000</bug_when>
    <thetext>Kai, it&apos;s still and issue. Can you resend the patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84079</commentid>
    <comment_count>10</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-06-06 14:52:52 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky-contrib-archive/log/?h=ciorga/YB5322</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84339</commentid>
    <comment_count>11</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2019-06-28 01:39:45 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84341</commentid>
    <comment_count>12</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2019-06-28 07:58:56 +0000</bug_when>
    <thetext>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&apos;s your opinions? Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84346</commentid>
    <comment_count>13</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2019-07-01 03:07:22 +0000</bug_when>
    <thetext>(In reply to comment #12)
&gt; The patch of connman is not needed for sysvinit either. Package connman-conf
&gt; provides config file /var/lib/connman/wired.config. In the config file,
&gt; nameserver 8.8.8.8 has been set. 
&gt; 

Oops. connman-conf only patches qemu machines.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84625</commentid>
    <comment_count>14</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-08-08 16:03:50 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86285</commentid>
    <comment_count>15</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-02-03 17:29:28 +0000</bug_when>
    <thetext>*** Bug 6278 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96074</commentid>
    <comment_count>16</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-07-26 21:22:01 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96427</commentid>
    <comment_count>17</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2023-09-14 15:42:25 +0000</bug_when>
    <thetext>Moved to M4.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96456</commentid>
    <comment_count>18</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2023-09-14 16:00:07 +0000</bug_when>
    <thetext>Mistakenly moved to M4. Since it&apos;s an enhancement, it should be 5.0 M1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97698</commentid>
    <comment_count>19</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-12-21 23:28:34 +0000</bug_when>
    <thetext>Bulk move of 52 5.0-M1 bugs to M2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97997</commentid>
    <comment_count>20</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-01-25 14:28:47 +0000</bug_when>
    <thetext>Bulk move of bugs owned by &quot;unassigned&quot; from 5.0-M2 to 5.0-M3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98955</commentid>
    <comment_count>21</comment_count>
    <who name="Thomas Roos">thomas</who>
    <bug_when>2024-05-02 09:57:57 +0000</bug_when>
    <thetext>@Ross: what do you think is the best solution for this?
I always fix this when using qemu for testing by:
echo &quot;nameserver 8.8.8.8&quot; &gt; /etc/resolv.conf

Which of course I like to get rid of.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>