* DNS when using Static IP
@ 2014-05-02 11:04 Tarek El-Sherbiny
2014-05-02 12:01 ` Iorga, Cristian
2014-05-02 15:38 ` Andreas Oberritter
0 siblings, 2 replies; 8+ messages in thread
From: Tarek El-Sherbiny @ 2014-05-02 11:04 UTC (permalink / raw)
To: yocto, openembedded-core@lists.openembedded.org
[-- Attachment #1: Type: text/plain, Size: 486 bytes --]
Hi.
I'm trying to set my IP config to a static address.
iface eth0 inet static
address 192.168.55.45
network 192.168.55.0
netmask 255.255.255.0
broadcast 192.168.55.255
gateway 192.168.55.1
dns-nameservers 192.168.10.2
But I don't get the DNS server address to be included in /etc/resolv.conf
If I run in dchp mode, then the resolv.conf is updated with my DNS address.
Is there something I'm missing here in my setup?
--
*Tarek*
[-- Attachment #2: Type: text/html, Size: 824 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: DNS when using Static IP 2014-05-02 11:04 DNS when using Static IP Tarek El-Sherbiny @ 2014-05-02 12:01 ` Iorga, Cristian 2014-05-02 12:30 ` Tarek El-Sherbiny 2014-05-02 15:38 ` Andreas Oberritter 1 sibling, 1 reply; 8+ messages in thread From: Iorga, Cristian @ 2014-05-02 12:01 UTC (permalink / raw) To: Tarek El-Sherbiny, yocto@yoctoproject.org, openembedded-core@lists.openembedded.org [-- Attachment #1: Type: text/plain, Size: 956 bytes --] Hello, What image did you start from, if any? i.e., core-image-minimal, core-image-sato, etc… Is connman included? Regards, Cristian Iorga YP Intel Corporation From: openembedded-core-bounces@lists.openembedded.org [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of Tarek El-Sherbiny Sent: Friday, May 2, 2014 2:05 PM To: yocto@yoctoproject.org; openembedded-core@lists.openembedded.org Subject: [OE-core] DNS when using Static IP Hi. I'm trying to set my IP config to a static address. iface eth0 inet static address 192.168.55.45 network 192.168.55.0 netmask 255.255.255.0 broadcast 192.168.55.255 gateway 192.168.55.1 dns-nameservers 192.168.10.2 But I don't get the DNS server address to be included in /etc/resolv.conf If I run in dchp mode, then the resolv.conf is updated with my DNS address. Is there something I'm missing here in my setup? -- Tarek [-- Attachment #2: Type: text/html, Size: 6296 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: DNS when using Static IP 2014-05-02 12:01 ` Iorga, Cristian @ 2014-05-02 12:30 ` Tarek El-Sherbiny 2014-05-02 12:49 ` Iorga, Cristian 0 siblings, 1 reply; 8+ messages in thread From: Tarek El-Sherbiny @ 2014-05-02 12:30 UTC (permalink / raw) To: Iorga, Cristian; +Cc: yocto, openembedded-core [-- Attachment #1: Type: text/plain, Size: 1271 bytes --] No connman is not included. Shall I include it and try? On 2 May 2014 13:01, "Iorga, Cristian" <cristian.iorga@intel.com> wrote: > Hello, > > > > What image did you start from, if any? > > i.e., core-image-minimal, core-image-sato, etc… > > Is connman included? > > > > Regards, > > Cristian Iorga > > YP > > Intel Corporation > > > > *From:* openembedded-core-bounces@lists.openembedded.org [mailto: > openembedded-core-bounces@lists.openembedded.org] *On Behalf Of *Tarek > El-Sherbiny > *Sent:* Friday, May 2, 2014 2:05 PM > *To:* yocto@yoctoproject.org; openembedded-core@lists.openembedded.org > *Subject:* [OE-core] DNS when using Static IP > > > > Hi. > > > > I'm trying to set my IP config to a static address. > > > > iface eth0 inet static > > address 192.168.55.45 > > network 192.168.55.0 > > netmask 255.255.255.0 > > broadcast 192.168.55.255 > > gateway 192.168.55.1 > > dns-nameservers 192.168.10.2 > > > > But I don't get the DNS server address to be included in /etc/resolv.conf > > > > If I run in dchp mode, then the resolv.conf is updated with my DNS address. > > Is there something I'm missing here in my setup? > > > > > > -- > > *Tarek* > [-- Attachment #2: Type: text/html, Size: 5478 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: DNS when using Static IP 2014-05-02 12:30 ` Tarek El-Sherbiny @ 2014-05-02 12:49 ` Iorga, Cristian 2014-05-02 13:08 ` Tarek El-Sherbiny 2014-05-02 14:15 ` Mike Looijmans 0 siblings, 2 replies; 8+ messages in thread From: Iorga, Cristian @ 2014-05-02 12:49 UTC (permalink / raw) To: Tarek El-Sherbiny Cc: yocto@yoctoproject.org, openembedded-core@lists.openembedded.org [-- Attachment #1: Type: text/plain, Size: 1685 bytes --] Not really, I just wanted to get a better overview of the issue that you are facing. What image did you started from, if any? From: Tarek El-Sherbiny [mailto:tarek.elsherbiny@gmail.com] Sent: Friday, May 2, 2014 3:31 PM To: Iorga, Cristian Cc: openembedded-core@lists.openembedded.org; yocto@yoctoproject.org Subject: RE: [OE-core] DNS when using Static IP No connman is not included. Shall I include it and try? On 2 May 2014 13:01, "Iorga, Cristian" <cristian.iorga@intel.com<mailto:cristian.iorga@intel.com>> wrote: Hello, What image did you start from, if any? i.e., core-image-minimal, core-image-sato, etc… Is connman included? Regards, Cristian Iorga YP Intel Corporation From: openembedded-core-bounces@lists.openembedded.org<mailto:openembedded-core-bounces@lists.openembedded.org> [mailto:openembedded-core-bounces@lists.openembedded.org<mailto:openembedded-core-bounces@lists.openembedded.org>] On Behalf Of Tarek El-Sherbiny Sent: Friday, May 2, 2014 2:05 PM To: yocto@yoctoproject.org<mailto:yocto@yoctoproject.org>; openembedded-core@lists.openembedded.org<mailto:openembedded-core@lists.openembedded.org> Subject: [OE-core] DNS when using Static IP Hi. I'm trying to set my IP config to a static address. iface eth0 inet static address 192.168.55.45 network 192.168.55.0 netmask 255.255.255.0 broadcast 192.168.55.255 gateway 192.168.55.1 dns-nameservers 192.168.10.2 But I don't get the DNS server address to be included in /etc/resolv.conf If I run in dchp mode, then the resolv.conf is updated with my DNS address. Is there something I'm missing here in my setup? -- Tarek [-- Attachment #2: Type: text/html, Size: 10542 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: DNS when using Static IP 2014-05-02 12:49 ` Iorga, Cristian @ 2014-05-02 13:08 ` Tarek El-Sherbiny 2014-05-02 14:15 ` Mike Looijmans 1 sibling, 0 replies; 8+ messages in thread From: Tarek El-Sherbiny @ 2014-05-02 13:08 UTC (permalink / raw) To: Iorga, Cristian Cc: yocto@yoctoproject.org, openembedded-core@lists.openembedded.org [-- Attachment #1: Type: text/plain, Size: 1893 bytes --] My image is based on core-image-base. include recipes-core/images/core-image-base.bb On Fri, May 2, 2014 at 1:49 PM, Iorga, Cristian <cristian.iorga@intel.com>wrote: > Not really, I just wanted to get a better overview of the issue that you > are facing. > > What image did you started from, if any? > > > > *From:* Tarek El-Sherbiny [mailto:tarek.elsherbiny@gmail.com] > *Sent:* Friday, May 2, 2014 3:31 PM > *To:* Iorga, Cristian > *Cc:* openembedded-core@lists.openembedded.org; yocto@yoctoproject.org > *Subject:* RE: [OE-core] DNS when using Static IP > > > > No connman is not included. Shall I include it and try? > > On 2 May 2014 13:01, "Iorga, Cristian" <cristian.iorga@intel.com> wrote: > > Hello, > > > > What image did you start from, if any? > > i.e., core-image-minimal, core-image-sato, etc… > > Is connman included? > > > > Regards, > > Cristian Iorga > > YP > > Intel Corporation > > > > *From:* openembedded-core-bounces@lists.openembedded.org [mailto: > openembedded-core-bounces@lists.openembedded.org] *On Behalf Of *Tarek > El-Sherbiny > *Sent:* Friday, May 2, 2014 2:05 PM > *To:* yocto@yoctoproject.org; openembedded-core@lists.openembedded.org > *Subject:* [OE-core] DNS when using Static IP > > > > Hi. > > > > I'm trying to set my IP config to a static address. > > > > iface eth0 inet static > > address 192.168.55.45 > > network 192.168.55.0 > > netmask 255.255.255.0 > > broadcast 192.168.55.255 > > gateway 192.168.55.1 > > dns-nameservers 192.168.10.2 > > > > But I don't get the DNS server address to be included in /etc/resolv.conf > > > > If I run in dchp mode, then the resolv.conf is updated with my DNS address. > > Is there something I'm missing here in my setup? > > > > > > -- > > *Tarek* > > -- *Tarek* [-- Attachment #2: Type: text/html, Size: 8142 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: DNS when using Static IP 2014-05-02 12:49 ` Iorga, Cristian 2014-05-02 13:08 ` Tarek El-Sherbiny @ 2014-05-02 14:15 ` Mike Looijmans 2014-05-02 14:56 ` Tarek El-Sherbiny 1 sibling, 1 reply; 8+ messages in thread From: Mike Looijmans @ 2014-05-02 14:15 UTC (permalink / raw) To: Iorga, Cristian, Tarek El-Sherbiny Cc: yocto@yoctoproject.org, openembedded-core@lists.openembedded.org When using DHCP, busybox's udhcpc script will write the DNS entries that the server returned into the resolv.conf file. In this case, I think you'll have to "provide" resolv.conf in some other way, there's nothing in ifup/ifdown that will modify resolv.conf based on keywords in the interfaces file. Mike. On 05/02/2014 02:49 PM, Iorga, Cristian wrote: > Not really, I just wanted to get a better overview of the issue that you > are facing. > > What image did you started from, if any? > > *From:*Tarek El-Sherbiny [mailto:tarek.elsherbiny@gmail.com] > *Sent:* Friday, May 2, 2014 3:31 PM > *To:* Iorga, Cristian > *Cc:* openembedded-core@lists.openembedded.org; yocto@yoctoproject.org > *Subject:* RE: [OE-core] DNS when using Static IP > > No connman is not included. Shall I include it and try? > > On 2 May 2014 13:01, "Iorga, Cristian" <cristian.iorga@intel.com > <mailto:cristian.iorga@intel.com>> wrote: > > Hello, > > What image did you start from, if any? > > i.e., core-image-minimal, core-image-sato, etc… > > Is connman included? > > Regards, > > Cristian Iorga > > YP > > Intel Corporation > > *From:*openembedded-core-bounces@lists.openembedded.org > <mailto:openembedded-core-bounces@lists.openembedded.org> > [mailto:openembedded-core-bounces@lists.openembedded.org > <mailto:openembedded-core-bounces@lists.openembedded.org>] *On > Behalf Of *Tarek El-Sherbiny > *Sent:* Friday, May 2, 2014 2:05 PM > *To:* yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>; > openembedded-core@lists.openembedded.org > <mailto:openembedded-core@lists.openembedded.org> > *Subject:* [OE-core] DNS when using Static IP > > Hi. > > I'm trying to set my IP config to a static address. > > iface eth0 inet static > > address 192.168.55.45 > > network 192.168.55.0 > > netmask 255.255.255.0 > > broadcast 192.168.55.255 > > gateway 192.168.55.1 > > dns-nameservers 192.168.10.2 > > But I don't get the DNS server address to be included in > /etc/resolv.conf > > If I run in dchp mode, then the resolv.conf is updated with my DNS > address. > > Is there something I'm missing here in my setup? > > -- > > /Tarek/ > > > -- Mike Looijmans ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: DNS when using Static IP 2014-05-02 14:15 ` Mike Looijmans @ 2014-05-02 14:56 ` Tarek El-Sherbiny 0 siblings, 0 replies; 8+ messages in thread From: Tarek El-Sherbiny @ 2014-05-02 14:56 UTC (permalink / raw) To: Mike Looijmans Cc: yocto@yoctoproject.org, openembedded-core@lists.openembedded.org [-- Attachment #1: Type: text/plain, Size: 2811 bytes --] I have created resolv.conf manually using vi but every time I do a reboot the file comes back empty. and the dns function is not working. What is the best solution to this? On Fri, May 2, 2014 at 3:15 PM, Mike Looijmans <mike.looijmans@topic.nl>wrote: > When using DHCP, busybox's udhcpc script will write the DNS entries that > the server returned into the resolv.conf file. > > In this case, I think you'll have to "provide" resolv.conf in some other > way, there's nothing in ifup/ifdown that will modify resolv.conf based on > keywords in the interfaces file. > > Mike. > > > > On 05/02/2014 02:49 PM, Iorga, Cristian wrote: > >> Not really, I just wanted to get a better overview of the issue that you >> are facing. >> >> What image did you started from, if any? >> >> *From:*Tarek El-Sherbiny [mailto:tarek.elsherbiny@gmail.com] >> *Sent:* Friday, May 2, 2014 3:31 PM >> *To:* Iorga, Cristian >> *Cc:* openembedded-core@lists.openembedded.org; yocto@yoctoproject.org >> *Subject:* RE: [OE-core] DNS when using Static IP >> >> >> No connman is not included. Shall I include it and try? >> >> On 2 May 2014 13:01, "Iorga, Cristian" <cristian.iorga@intel.com >> <mailto:cristian.iorga@intel.com>> wrote: >> >> Hello, >> >> What image did you start from, if any? >> >> i.e., core-image-minimal, core-image-sato, etc… >> >> Is connman included? >> >> Regards, >> >> Cristian Iorga >> >> YP >> >> Intel Corporation >> >> *From:*openembedded-core-bounces@lists.openembedded.org >> <mailto:openembedded-core-bounces@lists.openembedded.org> >> [mailto:openembedded-core-bounces@lists.openembedded.org >> <mailto:openembedded-core-bounces@lists.openembedded.org>] *On >> Behalf Of *Tarek El-Sherbiny >> *Sent:* Friday, May 2, 2014 2:05 PM >> *To:* yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>; >> openembedded-core@lists.openembedded.org >> <mailto:openembedded-core@lists.openembedded.org> >> *Subject:* [OE-core] DNS when using Static IP >> >> >> Hi. >> >> I'm trying to set my IP config to a static address. >> >> iface eth0 inet static >> >> address 192.168.55.45 >> >> network 192.168.55.0 >> >> netmask 255.255.255.0 >> >> broadcast 192.168.55.255 >> >> gateway 192.168.55.1 >> >> dns-nameservers 192.168.10.2 >> >> But I don't get the DNS server address to be included in >> /etc/resolv.conf >> >> If I run in dchp mode, then the resolv.conf is updated with my DNS >> address. >> >> Is there something I'm missing here in my setup? >> >> -- >> >> /Tarek/ >> >> >> >> > > -- > Mike Looijmans > -- *Tarek* [-- Attachment #2: Type: text/html, Size: 5140 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: DNS when using Static IP 2014-05-02 11:04 DNS when using Static IP Tarek El-Sherbiny 2014-05-02 12:01 ` Iorga, Cristian @ 2014-05-02 15:38 ` Andreas Oberritter 1 sibling, 0 replies; 8+ messages in thread From: Andreas Oberritter @ 2014-05-02 15:38 UTC (permalink / raw) To: Tarek El-Sherbiny, yocto, openembedded-core@lists.openembedded.org Hello Tarek, On 02.05.2014 13:04, Tarek El-Sherbiny wrote: > Hi. > > I'm trying to set my IP config to a static address. > > iface eth0 inet static > address 192.168.55.45 > network 192.168.55.0 > netmask 255.255.255.0 > broadcast 192.168.55.255 > gateway 192.168.55.1 > dns-nameservers 192.168.10.2 FWIW, in Debian-based systems, which is where ifupdown comes from, you need to install the resolvconf package in order to handle dns-nameservers entries. I don't know whether that's compatible with busybox' implementation of ifupdown, though. Regards, Andreas > > But I don't get the DNS server address to be included in /etc/resolv.conf > > If I run in dchp mode, then the resolv.conf is updated with my DNS address. > Is there something I'm missing here in my setup? > > > -- > /Tarek/ > > ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-05-02 15:46 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-05-02 11:04 DNS when using Static IP Tarek El-Sherbiny 2014-05-02 12:01 ` Iorga, Cristian 2014-05-02 12:30 ` Tarek El-Sherbiny 2014-05-02 12:49 ` Iorga, Cristian 2014-05-02 13:08 ` Tarek El-Sherbiny 2014-05-02 14:15 ` Mike Looijmans 2014-05-02 14:56 ` Tarek El-Sherbiny 2014-05-02 15:38 ` Andreas Oberritter
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox