You can ping IP addresses but you can't resolve Domain names: you need to
configure your DNS nameservers.

I've read a number of different ways to accomplish this on the beaglebone,
but they usually don't seem to work for me. These include adding a
nameserver entry in your /etc/network/interfaces, editing resolv.conf as
you suggested, or configuring the application that write to resolv.conf
depending on your system setup. I think back on Debian Jessie I may have
had the later work. But on the newest images, I'd have to get in there and
test it out myself.

Bottom line, you need to configure DNS Nameservers on your beaglebone.
Google around and see what other things you can find on the topic. here are
some suggestions:

https://www.ofitselfso.com/Beagle/NetworkingSetupConnectingTheBeagleboneBlack.php

TLDR;

pico /etc/network/interfaces

iface eth0 inet static

        address 192.168.1.102
        netmask 255.255.255.0
        gateway 192.168.1.254
        dns-nameservers 8.8.8.8
        dns-nameservers 8.8.4.4


Other stuff to check out:

https://wiki.debian.org/resolv.conf

https://www.howtoforge.com/debian-static-ip-address




~John Minton
(530) 454-5646


On Tue, Sep 3, 2019 at 8:44 AM Brian Tremaine <[email protected]> wrote:

> I realize this is an old post but I'm hoping to get some answers ;)  :
> Problems pinging www.google.com
>
> I have a BeagleBone Black Rev C that is running the latest Debian. I've
> been going through Derek Malloys book and video to get things started
> (excellent material BTW),
>
> I am connected to a Win 10 laptop (64-bit) using the USB interface and am
> using putty to connect through SSH. My problem is I cannot ping a DNS name,
> i.e. www.google.com. pinging 8.8.8.8 does work. When I try to edit /etc/
> resolv.conf it says file does not exist. On the terminal the file
> resolv.conf is shown in red; What does this mean?
>
> Can anybody help with hints on how to set up name server on BB Black Rev C
> with Debian?
>
> Thanks,
> Brian
>
> On Saturday, January 17, 2015 at 3:47:24 AM UTC-8, Raj_RB wrote:
>>
>> Hi,
>>
>> 1) I downloaded 'bone-debian-7.5-2014-05-14-2gb' (BBB eMMC flasher) from '
>> http://beagleboard.org/latest-images' and the website given MD5 checksum
>> matched with my downloaded zip file. Then used Win32 Disk Imager (since
>> windows 7), for image writing 4GB microSD.
>>
>> 2) Inserted microSD into BBB and pressed the boot button and then applied
>> power using the power adapter. (Please note that I have not connected
>> Ethernet and USB cable for power during the whole flashing process). But
>> only power supply LED got lit and not the user LEDs for around 5 seconds.
>> Then I removed the power supply and while pressing the boot button, I
>> provided the power supply and then all LEDs got lit for an instance and
>> then the LEDs started to glow erratically. Within 20 mins all the User
>> LED were off and did not ON again as against the standard procedure in
>> which all LEDs must glow after successful flashing of eMMC.
>>
>> 3) So, I thought to see if this works and I removed the microSD and
>> power. Then I connected BBB with my PC (by USB) using putty (SSH). I was
>> able to login successfully into debian but I was not able to ping google
>> after adding new gateway (192.168.7.1) and changing nameserver to 8.8.8.8
>> in '/etc/resolv.conf' file.
>>
>> Please note that before SSH-ing, I shared my wifi internet with BBB in
>> Network settings(Windows 7) and also I changed the IP address of my BBB to
>> 192.168.7.1. All this worked earlier for me by following this youtube link:
>> (https://www.youtube.com/watch?v=D-NEPiZDSx8).
>>
>> Also, BBB (Linux USB ethernet/ RNDIS gadget) in Network settings shows 'No
>> Internet access' eventhough I have shared internet and changed my ip
>> address to 192.168.7.1 with subnet mask 255.255.255.0 leaving the DNS
>> server addresses blank as in the youtube video.
>>
>> But now it doesn't work eventhough I have already done the same procedure
>> (flashing) many times now with the same result and feeling really
>> frustrated now. Please let me know if I am missing anything here. Is it due
>> to the flashing issue?
>> Waiting for all your inputs! Thank you!!
>>
>>
>> Output:
>>
>> BeagleBoard.org BeagleBone Debian Image 2014-05-14
>> Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian
>> [email protected]'s password:
>> Last login: Thu May 15 02:19:40 2014 from 192.168.7.1
>> debian@beaglebone:~$ sudo su
>> root@beaglebone:/home/debian# route add default gw 192.168.7.1
>> root@beaglebone:/home/debian# route -n
>> Kernel IP routing table
>> Destination Gateway Genmask Flags Metric Ref Use Iface
>> 0.0.0.0 192.168.7.1 0.0.0.0 UG 0 0 0 usb0
>> 192.168.7.0 0.0.0.0 255.255.255.252 U 0 0 0 usb0
>> root@beaglebone:/home/debian# cat /etc/resolv.conf
>> domain localdomain
>> search localdomain
>> nameserver 192.168.1.1
>> root@beaglebone:/home/debian# vim /etc/resolv.conf
>> root@beaglebone:/home/debian# cat /etc/resolv.conf
>> domain localdomain
>> search localdomain
>> nameserver 8.8.8.8
>> root@beaglebone:/home/debian# ping http://www.google.com
>> ping: unknown host http://www.google.com
>> root@beaglebone:/home/debian#
>>
>> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/9PWK96YLkzA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/22ad93f3-c979-4f1d-a7ac-cc661f523dd5%40googlegroups.com
> <https://groups.google.com/d/msgid/beagleboard/22ad93f3-c979-4f1d-a7ac-cc661f523dd5%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAE5W9WvjEkOrxoCPNJMRE8DtWFD2xGR%3DbptxS4%3DqEXnmFadRqA%40mail.gmail.com.

Reply via email to