jamison904 / terminal-ide

Automatically exported from code.google.com/p/terminal-ide
0 stars 0 forks source link

DNS in busybox not working #29

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
ping, nslookup and other utilities requiring DNS fail to resolve hostnames. 
From the searching on Google I did, it appears to be a problem stemming from 
statically linking busybox but I'm not 100% sure.

OS: Android 2.1, using system-1.95

Original issue reported on code.google.com by dbz11.2...@gmail.com on 9 Feb 2012 at 12:54

GoogleCodeExporter commented 8 years ago
Err, delete this report, duplicate of 25. Didn't notice it before...

Original comment by dbz11.2...@gmail.com on 11 Feb 2012 at 9:52

GoogleCodeExporter commented 8 years ago
For wget just try : http://jacob.hoffman-andrews.com/android/wget/
binary file 

Original comment by mki...@gmail.com on 14 Feb 2012 at 2:02

GoogleCodeExporter commented 8 years ago
NO DNS support in static binaries..

DNS works only in java.

USE jping to get IP. Then use that..

Original comment by spartacu...@gmail.com on 15 Feb 2012 at 11:30

GoogleCodeExporter commented 8 years ago
Read here for solutions:
http://android.stackexchange.com/questions/10657/android-terminal-not-able-to-ns
lookup

This is a rather well-known problem.  You either need to compile against 
bionic, or add the DNS libs.

Original comment by jmomo...@gmail.com on 19 Nov 2012 at 7:18

GoogleCodeExporter commented 8 years ago
Note that Cyanogenmod has their /system/xbin/busybox fixed, so you can use that 
as an example if needed.

Original comment by jmomo...@gmail.com on 19 Nov 2012 at 7:21

GoogleCodeExporter commented 8 years ago
Alternatively, if you are rooted, you can install the latest version of busybox 
(you may be able to compile it). Then find out where you updated busybox is and 
run the following commands: (I'm assuming it's in /system/bin)

PATH=/system/bin:$PATH
cd ~/system/bin
mv busybox busybox.old
ln -s /system/bin/busybox busybox

Now domains will be resolved properly unless busybox is upgraded (or maybe 
spartacus has found a different solution? either way, busybox needs to be 
upgraded anyway).
Please note: due to the way busybox works, you have to be root to be able to 
use ping (although things like wget should be able to resolve hosts properly 
now). The busybox developers are working on this issue.

Original comment by superakt...@gmail.com on 11 Apr 2013 at 5:43

GoogleCodeExporter commented 8 years ago
simpler remove wget from ~/system/bin/bbdir it works for me since PATH is 
already setted with /system/xbin. Removing ping instead doesn't do the trick 
even if
which ping
respond to me with /system/bin/ping... very strange

Original comment by xcki...@gmail.com on 19 May 2014 at 7:55