From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eial Czerwacki Date: Wed, 09 Jul 2014 17:40:18 +0300 Subject: [Buildroot] ping not working in a glibc based buildroot In-Reply-To: <20140709142242.GK3003@tarshish> References: <53BD4395.5050306@scalemp.com> <20140709142242.GK3003@tarshish> Message-ID: <53BD5452.6030902@scalemp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Greetings Baruch On 07/09/2014 05:22 PM, Baruch Siach wrote: > Hi Eial, > > On Wed, Jul 09, 2014 at 04:28:53PM +0300, Eial Czerwacki wrote: >> Greetings, >> >> I've built a root using buildroot-2014.05 with busybox and glibc. >> after that I've mounted the image and chroot into it. I've tried to ping >> my desktop and I get this: >> # ping eial >> ping: bad address 'eial' >> >> but when I'm trying the same from the host computer (where the image is >> mounted) I get this: >> [root at cluster1 ~]# ping eial >> PING eial (10.100.0.120) 56(84) bytes of data. >> 64 bytes from eial (10.100.0.120): icmp_seq=1 ttl=64 time=0.227 ms >> 64 bytes from eial (10.100.0.120): icmp_seq=2 ttl=64 time=0.198 ms >> >> any ideas what can be the issue and how to solve it? > This is most likely a name server configuration issue. Can you compare the > content of your host /etc/resolv.conf to that of your chroot? > > baruch > yes, here it is: --- /etc/resolv.conf 2014-07-09 17:35:30.420040438 +0300 +++ yyy/etc/resolv.conf 1970-01-01 02:00:00.000000000 +0200 @@ -1,3 +0,0 @@ -; generated by /sbin/dhclient-script -search cluserdns cluserdnsus -nameserver 10.100.1.40 thing is, I'm not sure who generates the content of that file, is it part of busybox? other utility? Thanks, Eial.