All of lore.kernel.org
 help / color / mirror / Atom feed
* DNS nameservers in Yocto
@ 2015-02-03 15:43 Jim Abernathy
  2015-02-03 17:20 ` Dean
  0 siblings, 1 reply; 5+ messages in thread
From: Jim Abernathy @ 2015-02-03 15:43 UTC (permalink / raw)
  To: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 368 bytes --]

I find that for Static IPs, I have to manually add my DNS name servers to /etc/resolv.conf instead of what I'm use to and that's put the line in /etc/network/interfaces with the dns-nameserver [IP] [IP].

My knowledge base comes from Ubuntu Server where putting everything in "/etc/network/interfaces" covers most things.

Anyone know why?

Jim A

 		 	   		  

[-- Attachment #2: Type: text/html, Size: 601 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: DNS nameservers in Yocto
  2015-02-03 15:43 DNS nameservers in Yocto Jim Abernathy
@ 2015-02-03 17:20 ` Dean
  2015-02-03 18:11   ` Paul Eggleton
  0 siblings, 1 reply; 5+ messages in thread
From: Dean @ 2015-02-03 17:20 UTC (permalink / raw)
  To: Jim Abernathy, yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 614 bytes --]

Add resolvconf to your image.

That being said, I'm using dora and the package there was very 
incomplete. I had to add quite a bit in a .bbappend to make it work 
properly.


On 2/3/2015 9:43 AM, Jim Abernathy wrote:
> I find that for Static IPs, I have to manually add my DNS name servers 
> to /etc/resolv.conf instead of what I'm use to and that's put the line 
> in /etc/network/interfaces with the dns-nameserver [IP] [IP].
>
> My knowledge base comes from Ubuntu Server where putting everything in 
> "/etc/network/interfaces" covers most things.
>
> Anyone know why?
>
> Jim A
>
>
>


[-- Attachment #2: Type: text/html, Size: 1316 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: DNS nameservers in Yocto
  2015-02-03 17:20 ` Dean
@ 2015-02-03 18:11   ` Paul Eggleton
  2015-02-03 19:25     ` Jim Abernathy
  2015-02-03 19:42     ` Dean
  0 siblings, 2 replies; 5+ messages in thread
From: Paul Eggleton @ 2015-02-03 18:11 UTC (permalink / raw)
  To: Dean; +Cc: yocto

Hi Dean,

On Tuesday 03 February 2015 11:20:01 Dean wrote:
> On 2/3/2015 9:43 AM, Jim Abernathy wrote:
> > I find that for Static IPs, I have to manually add my DNS name servers
> > to /etc/resolv.conf instead of what I'm use to and that's put the line
> > in /etc/network/interfaces with the dns-nameserver [IP] [IP].
> > 
> > My knowledge base comes from Ubuntu Server where putting everything in
> > "/etc/network/interfaces" covers most things.
> > 
> > Anyone know why?
>
> Add resolvconf to your image.
> 
> That being said, I'm using dora and the package there was very
> incomplete. I had to add quite a bit in a .bbappend to make it work
> properly.

Would the issues you found have been fixed by this commit?

  http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=35e0a3eb6725781eb291b3fa90694a68c3b64c60

If not, we should really try to get these fixed in the original recipe - we'd 
certainly appreciate help there.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: DNS nameservers in Yocto
  2015-02-03 18:11   ` Paul Eggleton
@ 2015-02-03 19:25     ` Jim Abernathy
  2015-02-03 19:42     ` Dean
  1 sibling, 0 replies; 5+ messages in thread
From: Jim Abernathy @ 2015-02-03 19:25 UTC (permalink / raw)
  To: Paul Eggleton, Dean; +Cc: yocto@yoctoproject.org

[-- Attachment #1: Type: text/plain, Size: 1394 bytes --]



> From: paul.eggleton@linux.intel.com
> To: dean@ripperd.com
> CC: jfabernathy@outlook.com; yocto@yoctoproject.org
> Subject: Re: [yocto] DNS nameservers in Yocto
> Date: Tue, 3 Feb 2015 18:11:12 +0000
> 
> Hi Dean,
> 
> On Tuesday 03 February 2015 11:20:01 Dean wrote:
> > On 2/3/2015 9:43 AM, Jim Abernathy wrote:
> > > I find that for Static IPs, I have to manually add my DNS name servers
> > > to /etc/resolv.conf instead of what I'm use to and that's put the line
> > > in /etc/network/interfaces with the dns-nameserver [IP] [IP].
> > > 
> > > My knowledge base comes from Ubuntu Server where putting everything in
> > > "/etc/network/interfaces" covers most things.
> > > 
> > > Anyone know why?
> >
> > Add resolvconf to your image.
> > 
> > That being said, I'm using dora and the package there was very
> > incomplete. I had to add quite a bit in a .bbappend to make it work
> > properly.
> 
> Would the issues you found have been fixed by this commit?
> 
>   http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=35e0a3eb6725781eb291b3fa90694a68c3b64c60
> 
> If not, we should really try to get these fixed in the original recipe - we'd 
> certainly appreciate help there.
> 
> Cheers,
> Paul
> 
> -- 
> 
> Paul Eggleton
> Intel Open Source Technology Centre

Just adding 'resolvconf' fixed my issue on dizzy.

Jim A

 		 	   		  

[-- Attachment #2: Type: text/html, Size: 1900 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: DNS nameservers in Yocto
  2015-02-03 18:11   ` Paul Eggleton
  2015-02-03 19:25     ` Jim Abernathy
@ 2015-02-03 19:42     ` Dean
  1 sibling, 0 replies; 5+ messages in thread
From: Dean @ 2015-02-03 19:42 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: yocto


On 2/3/2015 12:11 PM, Paul Eggleton wrote:
> Hi Dean,
>
> On Tuesday 03 February 2015 11:20:01 Dean wrote:
>> On 2/3/2015 9:43 AM, Jim Abernathy wrote:
>>> I find that for Static IPs, I have to manually add my DNS name servers
>>> to /etc/resolv.conf instead of what I'm use to and that's put the line
>>> in /etc/network/interfaces with the dns-nameserver [IP] [IP].
>>>
>>> My knowledge base comes from Ubuntu Server where putting everything in
>>> "/etc/network/interfaces" covers most things.
>>>
>>> Anyone know why?
>> Add resolvconf to your image.
>>
>> That being said, I'm using dora and the package there was very
>> incomplete. I had to add quite a bit in a .bbappend to make it work
>> properly.
> Would the issues you found have been fixed by this commit?
>
>    http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=35e0a3eb6725781eb291b3fa90694a68c3b64c60
>
> If not, we should really try to get these fixed in the original recipe - we'd
> certainly appreciate help there.
>
> Cheers,
> Paul
>

Yeah, that's about 95% of it. I don't think it has a service yet though?

Here is my .bbappend. It probably isn't perfect or bug free, but working 
on my dora builds. I think I ripped the scripts out of the debian 
packages and then fixed anything necessary to make them work with busybox.

cat resolvconf_1.74.bbappend
# Added by Dean to fix issues in resolvconf recipe

# look for files in this layer first
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI += " file://fixpath.patch \
          file://resolvconf.init \
          file://netresolvconfdown \
          file://netresolvconfup \
          file://pppresolvconfdown \
          file://pppresolvconfup "

inherit update-rc.d

INITSCRIPT_NAME = "resolvconf"
INITSCRIPT_PARAMS = "start 39 S . stop 41 0 6 ."

# add list-records script, its missing in distro
# add volatile resolv.conf - package maintainer didnt??!@?!
# Add startup/shutdown script
FILES_${PN} += " /lib/resolvconf/list-records "
do_install_append () {
     install -d ${D}/lib/${BPN}
     install -m 0755 bin/list-records ${D}/lib/${BPN}/

     echo "l root root 0644 /etc/resolv.conf 
${sysconfdir}/${BPN}/run/resolv.conf" >> 
${D}${sysconfdir}/default/volatiles/99_resolvconf
     echo "f root root 0644 ${sysconfdir}/${BPN}/run/resolv.conf none" 
           >> ${D}${sysconfdir}/default/volatiles/99_resolvconf

     install -d ${D}${sysconfdir}/init.d
     cp ${WORKDIR}/resolvconf.init ${WORKDIR}/resolvconf
     install -m 0755 ${WORKDIR}/resolvconf ${D}${sysconfdir}/init.d/

# Add things needed for interfaces coming up and down
     install -d ${D}${sysconfdir}/network/if-down.d/
     install -d ${D}${sysconfdir}/network/if-up.d/
     install -d ${D}${sysconfdir}/ppp/ip-down.d/
     install -d ${D}${sysconfdir}/ppp/ip-up.d/
     install -m 0755 ${WORKDIR}/netresolvconfdown 
${D}${sysconfdir}/network/if-down.d/resolvconf
     install -m 0755 ${WORKDIR}/netresolvconfup 
${D}${sysconfdir}/network/if-up.d/000resolvconf
     install -m 0755 ${WORKDIR}/pppresolvconfdown 
${D}${sysconfdir}/ppp/ip-down.d/000resolvconf
     install -m 0755 ${WORKDIR}/pppresolvconfup 
${D}${sysconfdir}/ppp/ip-up.d/000resolvconf

}


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-03 19:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-03 15:43 DNS nameservers in Yocto Jim Abernathy
2015-02-03 17:20 ` Dean
2015-02-03 18:11   ` Paul Eggleton
2015-02-03 19:25     ` Jim Abernathy
2015-02-03 19:42     ` Dean

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.