Why dns is not working in this BBB -> laptop hotspot configuration

558 views
Skip to first unread message

ith...@gmail.com

unread,
Feb 11, 2019, 9:21:04 AM2/11/19
to BeagleBoard
So there is connmanctl. And a new problem: no dns. It was once, no more. I can not test it, because all these usable little tools normally found in ubuntu like nmcli have been removed from BB. Anyone could help?

##connman: WiFi
#
#connmanctl
#connmanctl> tether wifi off
#connmanctl> enable wifi
#connmanctl> scan wifi
#connmanctl> services
#connmanctl> agent on
#connmanctl> connect wifi_*_managed_psk
#connmanctl> config wifi_e0e5ff8b8b94_671272_managed_psk nameservers 8.8.8.8
#connmanctl> quit

  Type = wifi
  Security = [ psk, wps ]
  State = ready
  Strength = 89
  Favorite = True
  Immutable = False
  AutoConnect = True
  Name = art
  Ethernet = [ Method=auto, Interface=wlan0, Address=E0:E5:CF:8B:9B:96, MTU=1500 ]
  IPv4 = [ Method=dhcp, Address=10.42.0.90, Netmask=255.255.255.0, Gateway=10.42.0.1 ]
  IPv4.Configuration = [ Method=dhcp ]
  IPv6 = [  ]
  IPv6.Configuration = [ Method=auto, Privacy=disabled ]
  Nameservers = [ 8.8.8.8 ]
  Nameservers.Configuration = [ 8.8.8.8 ]
  Timeservers = [ 10.42.0.1 ]
  Timeservers.Configuration = [  ]
  Domains = [  ]
  Domains.Configuration = [  ]
  Proxy = [ Method=direct ]# ping 8.8.8.8
  Proxy.Configuration = [  ]
  Provider = [  ]

$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=121 time=3.79 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=121 time=4.92 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=121 time=4.65 ms

$ ping google.com
ping: google.com: Temporary failure in name resolution

ith...@gmail.com

unread,
Feb 11, 2019, 9:28:55 AM2/11/19
to BeagleBoard
In /etc/resolv.conf there is a line nameserver 8.8.8.8

I am sorry, there is Debian on BB and not Ubuntu, this may explain the missing tools.

Tarmo Kuuse

unread,
Feb 11, 2019, 10:40:17 AM2/11/19
to BeagleBoard
On Monday, 11 February 2019 16:28:55 UTC+2, ith...@gmail.com wrote:
In /etc/resolv.conf there is a line nameserver 8.8.8.8

I am sorry, there is Debian on BB and not Ubuntu, this may explain the missing tools.

I'd recommend debugging DNS connectivity using the low-level "host" command. It ignores the system's DNS client configuration. For example, the following command queries the name "google.com" from DNS server 8.8.8.8:

$ host google.com 8.8.8.8

I would firstly try the DNS servers provided by my Internet Service Provider. Anyway, if "host" resolves names and the system's DNS client doesn't, then you have a lead. If neither option resolves names, your Internet connection is broken.

--
Kind regards,
Tarmo

ith...@gmail.com

unread,
Feb 11, 2019, 11:03:01 AM2/11/19
to BeagleBoard
Hello Tarmo. Thanks for your help,  host google.com 8.8.8.8 gives
;; connection timed out; no servers could be reached

I have lost too much time an attempt to have a working network connection on BB.

Firstly, via USB, a known problem. With Linux, it never worked like a normal network.
Then, an adapter Ethernet-USB. BB recognized it in maybe 80%, then 20% of times, then never. My laptop recognizes it always until now.
Then, connmanctl. I have never seen this application before, in any case, no way of connecting it to a given enterprise Wifi, and its error reporting was like "invalid parameter" to its internal command with no parameters. Sure, a more typical Wifi and it would work.
So I decided to connect BB to my laptop working as a hotspot. It accepts specific ports, SSH for example, DNS it seems no way.

With RPi, it just works. Cable, Wifi, in different places and networks, it just works. BB, no way.

Tarmo Kuuse

unread,
Feb 11, 2019, 11:44:48 AM2/11/19
to BeagleBoard
On Monday, 11 February 2019 18:03:01 UTC+2, ith...@gmail.com wrote:
Hello Tarmo. Thanks for your help,  host google.com 8.8.8.8 gives
;; connection timed out; no servers could be reached

I have lost too much time an attempt to have a working network connection on BB.

Firstly, via USB, a known problem. With Linux, it never worked like a normal network.
Then, an adapter Ethernet-USB. BB recognized it in maybe 80%, then 20% of times, then never. My laptop recognizes it always until now.
Then, connmanctl. I have never seen this application before, in any case, no way of connecting it to a given enterprise Wifi, and its error reporting was like "invalid parameter" to its internal command with no parameters. Sure, a more typical Wifi and it would work.
So I decided to connect BB to my laptop working as a hotspot. It accepts specific ports, SSH for example, DNS it seems no way.

With RPi, it just works. Cable, Wifi, in different places and networks, it just works. BB, no way.

I'm sorry to hear about your USB-Ethernet adapter dying. I have used a couple of different USB-Ethernet adapters on my Beaglebone-derived device - some are very stable and some drop out after a few hours or days, but a reset always brings them back online. Perhaps you should get a different one. BTW, I'm a little confused - if you have a BeagleBone Black (as the topic states), why can't you use the built-in Ethernet port?

Anyway, Internet connection sharing is a fragile operation as there are many things which need to go right for it to work. If your ping and ssh go through but DNS doesn't, it might be that TCP and ICMP work, but UDP doesn't. You can do some experiments using simple tools like telnet and netcat, but this doesn't really concern the BeagleBone any more.

--
Kind regards,
Tarmo

ith...@gmail.com

unread,
Feb 11, 2019, 12:18:56 PM2/11/19
to BeagleBoard
I use Beaglebone Blue which has no Ethernet port. Yes, internet sharing has many variables, but hotspots often work and if BBB had a typical Wifi manager, there would likely be no issue from the start. There are no tools like telnet or nmcli installed on it. For now, I will try port tunneling via SSH. Thanks Tarmo for your help.

ith...@gmail.com

unread,
Feb 13, 2019, 12:01:36 PM2/13/19
to BeagleBoard
Is there a way of just replacing connmanm with wpa_supplicant using apt_get?

Sicelo

unread,
Feb 13, 2019, 12:09:32 PM2/13/19
to beagl...@googlegroups.com
On Wed, Feb 13, 2019 at 09:01:36AM -0800, ith...@gmail.com wrote:
> Is there a way of just replacing connmanm with wpa_supplicant using apt_get?
>

Yes there is. Note that there is nothing wrong with connman. You can
learn it, like you learned any other tool, e.g. wpa_supplicant, nmcli.

One more thing, connmanctl can connect to an Enterprise network. You
need to prepare the corresponding file, just like you will need to with
wpa_supplicant

Ithinu

unread,
Feb 13, 2019, 12:42:50 PM2/13/19
to beagl...@googlegroups.com
> Yes there is. Note that there is nothing wrong with connman.
> One more thing, connmanctl can connect to an Enterprise network. You
> need to prepare the corresponding file, just like you will need to with
> wpa_supplicant

I did. Then I used a standard sequence of operations from the tutorial and in this particular network it showed "bad parameter" or whatever, without a slightest explanation, where the problem is. But given that you find nothing wrong with connman, you likely also find nothing wrong with its error reporting.



--
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/oUorVdn8mEw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/20190213170912.GA11879%40Nokia-N900.
For more options, visit https://groups.google.com/d/optout.

Ithinu

unread,
Feb 13, 2019, 1:18:25 PM2/13/19
to beagl...@googlegroups.com
I manually removed everything from /etc/resolv.conf and put there only ip of the laptop's hotspot. Fortunately a direct connection to the laptop is enough and even better for now than that to the enterprise wifi.

ith...@gmail.com

unread,
Feb 13, 2019, 1:36:37 PM2/13/19
to BeagleBoard
Strangely the hotspot was set as DNS before, but it did not work back then.

Thank you all for your support.

ith...@gmail.com

unread,
Feb 18, 2019, 7:35:05 AM2/18/19
to BeagleBoard
So it is like that: even if I put nameservers 10.42.0.1 or 8.8.8.8, whatever, into connmanctl config and asking it then shows that exact IP as the DNS server, what is put into resolv.conf is some three values which look like IP6 adresses, I have no idea what they mean. Anyway, DNS is not working with them and I need to replace everything in resolv.conf with nameserver 10.42.0.1 after every rewrite of the file by connmanctl, then it works fine.

Tarmo Kuuse

unread,
Feb 18, 2019, 10:13:00 AM2/18/19
to BeagleBoard
On Monday, 18 February 2019 14:35:05 UTC+2, ith...@gmail.com wrote:
So it is like that: even if I put nameservers 10.42.0.1 or 8.8.8.8, whatever, into connmanctl config and asking it then shows that exact IP as the DNS server, what is put into resolv.conf is some three values which look like IP6 adresses, I have no idea what they mean. Anyway, DNS is not working with them and I need to replace everything in resolv.conf with nameserver 10.42.0.1 after every rewrite of the file by connmanctl, then it works fine.

Well, the contents of resolv.conf come from your DHCP server (unless you've arranged it differently). To fix that, you'd need to re-configure your DHCP server.

--
Kind regards
Tarmo

ith...@gmail.com

unread,
Feb 18, 2019, 10:15:07 AM2/18/19
to BeagleBoard
Possibly, I do not know a lot about it. At the beginning of the file, there is "# Generated by Connection Manager" though.
Reply all
Reply to author
Forward
0 new messages