DNS nameservers in Yocto
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
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.
Quoted 10 lines · Jim Abernathy
I find that for Static IPs, I have to manually add my DNS name servers to
/etc/resolv.confinstead of what I'm use to and that's put the line in/etc/network/interfaceswith 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
Hi Dean,
Quoted 8 lines · On Tuesday 03 February 2015 11:20:01 Dean wrote:
Quoted 7 lines · Jim Abernathy
I find that for Static IPs, I have to manually add my DNS name servers to
/etc/resolv.confinstead of what I'm use to and that's put the line in/etc/network/interfaceswith the dns-nameserver [IP] [IP].My knowledge base comes from Ubuntu Server where putting everything in "
/etc/network/interfaces" covers most things.
Quoted 7 lines
Quoted 1 line
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
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 29 lines
From: [email protected]
To: [email protected]
CC: [email protected]; [email protected]
Subject: Re: [yocto] DNS nameservers in Yocto
Date: Tue, 3 Feb 2015 18:11:12 +0000Hi Dean,
Quoted 8 lines · On Tuesday 03 February 2015 11:20:01 Dean wrote:
Quoted 7 lines · Jim Abernathy
I find that for Static IPs, I have to manually add my DNS name servers to
/etc/resolv.confinstead of what I'm use to and that's put the line in/etc/network/interfaceswith the dns-nameserver [IP] [IP].My knowledge base comes from Ubuntu Server where putting everything in "
/etc/network/interfaces" covers most things.Quoted 7 lines
Quoted 1 line
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?
Quoted 12 lines
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,
PaulSignature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Just adding 'resolvconf' fixed my issue on dizzy.
Jim A
Quoted 19 lines · Paul Eggleton
Hi Dean,
Quoted 8 lines · On Tuesday 03 February 2015 11:20:01 Dean wrote:
Quoted 7 lines · Jim Abernathy
I find that for Static IPs, I have to manually add my DNS name servers to
/etc/resolv.confinstead of what I'm use to and that's put the line in/etc/network/interfaceswith the dns-nameserver [IP] [IP].My knowledge base comes from Ubuntu Server where putting everything in "
/etc/network/interfaces" covers most things.Quoted 6 lines
Quoted 1 line
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?
Quoted 8 lines
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=35e0a3eb6725781eb291b3fa90694a68c3b64c60If 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
}