nslookup fails. - Hero, G2 Touch General

Using both Cronos and Villain 2.1 Roms nslookup seems not to work from a terminal window.
the syntax is:-
Code:
nslookup [HOST] [SERVER]
with server being optional.
None of my lookups resolve with a 'can't resolve [HOST]' error.
I've even tried specifying the DNS server at Open DNS
e.g.
Code:
nslookup msn.com 208.67.222.222
and it still fails.
Anyone able to shed any light on this? I'm actually trying to resolve why my hosts file isn't being read.

Related

[SOLVED] I'm lost. Openvpn + tun + HMA. [email protected]!

Hi,
Just got myself some nice account at hidemyass_dot_com ... They dont support l2tp yet, and pptp just doesn't work (some encryption issue idk).
So I figured i'd try using openvpn. So I downloaded the market version of openvpn software.
Got the crt files, ovpn files and key file. Everything is in order. When I try to connect, I see that I can pass everything (even get a bloody IP). But the routes dont work. Meaning, I'm not routed through the tunnel but through the normal pdp0 interface.
I got into adb shell, adb logcat etc. This is what I figured out:
Routes are not "implemented" because it can't find the tun0 interface. Why? because its not in "up" mode. Since its not in "up" mode, openvpn software failed when it did "ifconfig IP MASK".
Now get this, if i manually (after openvpn authenticates, assigns an IP and says "connected") netcfg tun0 up, and then manually ifconfig tun0 IP MASK and then manually assign the routes which were automatically failed last time - it works.
Everything is routed properly.
What I figured was an issue with the netcfg tun0 up and ifconfig tun0 ip mask commands ... I read people tried tun.ko files (for each cfw) but couldn't find any for S2 (or lite'ning).
OMG I'm desperate. Help?
[SOLVED] - CHECK BELOW
advocator said:
Hi,
Just got myself some nice account at hidemyass_dot_com ... They dont support l2tp yet, and pptp just doesn't work (some encryption issue idk).
So I figured i'd try using openvpn. So I downloaded the market version of openvpn software.
Got the crt files, ovpn files and key file. Everything is in order. When I try to connect, I see that I can pass everything (even get a bloody IP). But the routes dont work. Meaning, I'm not routed through the tunnel but through the normal pdp0 interface.
I got into adb shell, adb logcat etc. This is what I figured out:
Routes are not "implemented" because it can't find the tun0 interface. Why? because its not in "up" mode. Since its not in "up" mode, openvpn software failed when it did "ifconfig IP MASK".
Now get this, if i manually (after openvpn authenticates, assigns an IP and says "connected") netcfg tun0 up, and then manually ifconfig tun0 IP MASK and then manually assign the routes which were automatically failed last time - it works.
Everything is routed properly.
What I figured was an issue with the netcfg tun0 up and ifconfig tun0 ip mask commands ... I read people tried tun.ko files (for each cfw) but couldn't find any for S2 (or lite'ning).
OMG I'm desperate. Help?
Click to expand...
Click to collapse
I've been trying to do this but just forgot about it when I first got the phone. You need to compile the tun.ko driver.
are you root?
you need root for OpenVPN
also the kernel needs to have tun.ko else it won't work
I wasn't able to test it myself yet but this is what I remembered from my Hero..
Gawis said:
are you root?
you need root for OpenVPN
also the kernel needs to have tun.ko else it won't work
I wasn't able to test it myself yet but this is what I remembered from my Hero..
Click to expand...
Click to collapse
I'm root.
Now not sure about the tun.ko in the kernel. I guess it has the default one (I do afterall, manage to netcfg tun0 up and ifconfig tun0 IP MASK if I do them manually ... they fail when openvpn does them by itself) ..
Maybe I need a special tun.ko? how can I compile my own?
I suddenly remembered thread in which I posted a while back about SGSII and OpenVPN
that member confirmed it as working, the link is here:
http://forum.xda-developers.com/showthread.php?t=1074492
I will root my SGSII somewhere this or next month and try it myself then..
SOLVED
Had to reinstall BusyBox (so I'd have /system/xbin/bb folder).
Now everything works with the default tun.
re-install openvpn when prompt ifconfig directory select /system/xbin/bb. then open console add sym link "ln -s /system/xbin /system/xbin/bb"
your openvpn should now able to up the tun0 interface and accept the push config from openvpn server

[Q] Atrrix Blur rom Mac change

Hello Everybody,
I would like to change MAC address of wifi card in my atrix, but i cant:-(
I am rooted, i use Nottachtrix 1.2.4
With Terminal Emulator i try both options:
su
ip link set eth0 address 00:12:f0:dd:cc:dc
ifconfig eth0 hw ether 00:12:f0:dd:cc:dc
I do not get any error but MAC is just not changed.
Any ideas how to Fix this problem
Adam

[Q]Changing MAC address

I don't know if this is the right category,but...I tried to change my MAC address following this tutorial:
"ip link set NAME down
ip link set NAME address ....
ip link set NAME up"
but when I write "ip link set wlan0 down" and press enter my tablet just reboots.
If I try "busybox ifconfig wlan0 hw ether ..." the address doesn't change(checked it).
Is there a WORKING method to change my MAC?
If you are wondering I am running the latest version of CM11
Bad bad bad
aveq8 said:
I don't know if this is the right category,but...I tried to change my MAC address following this tutorial:
"ip link set NAME down
ip link set NAME address ....
ip link set NAME up"
but when I write "ip link set wlan0 down" and press enter my tablet just reboots.
If I try "busybox ifconfig wlan0 hw ether ..." the address doesn't change(checked it).
Is there a WORKING method to change my MAC?
If you are wondering I am running the latest version of CM11
Click to expand...
Click to collapse
The Question is Why do you want to do this. You know the MAC address is like a serial number to your WIFI Device in the Tablet.If you Change this to match a wifi address to Anyone on the same WAN. The two devices will Conflict and Likely Cause the WAN Provider (cable company) to BAN BOTH MAC Addresses. They do this to STOP Theft of Services.
I Seriously ADVISE Leaving it be.
If you have a issue that you think changing the MAC Will help please post that issue and someone may be able to help..

SFTP to Nexus Play

Hello Hello,
So am i am trying to FTP into my nexus player with no success.
1) download ssh server apk to NExus Player and set it up
- found ip address through network-->"my ssid"--> status info
2) via winscp typed in ip address from step 1 and port# from step 1 (when setting up the ssh server)
3) username: root password:abc123 (i found this from the firetv, but it could be the issue but i am not even getting an authentication error)
I just get a hang.. doesn't do anything, the connection times out. I Tried making a username and password via sshserver settings, but that didn't work either.
Am I using the wrong IP address? username? password? some help would be greatly appreciated ; >
johentie said:
Hello Hello,
So am i am trying to FTP into my nexus player with no success.
1) download ssh server apk to NExus Player and set it up
- found ip address through network-->"my ssid"--> status info
2) via winscp typed in ip address from step 1 and port# from step 1 (when setting up the ssh server)
3) username: root password:abc123 (i found this from the firetv, but it could be the issue but i am not even getting an authentication error)
I just get a hang.. doesn't do anything, the connection times out. I Tried making a username and password via sshserver settings, but that didn't work either.
Am I using the wrong IP address? username? password? some help would be greatly appreciated ; >
Click to expand...
Click to collapse
Don't FTP, SCP/SFTP. Research what you are doing / trying to do better, it seems you are on very thin ice.
Use username and password from SSH Server settings.
Also, you don't need to manually install it with sideload, you can just go to https://play.google.com from a browser and then use install and choose Nexus Player. Of course logged into the same Google account as the NP.
Does anyone know how to get a remote shell on NP? Since SSH Server can't produce a shell on x86 devices.
Also remote adb doesn't work on latest firmware AFAIK.
Edit: Created a separate thread about remote shell - http://forum.xda-developers.com/nexus-player/help/remote-console-nexus-player-how-adb-ssh-t3000595

How to Resolve DNS Server in Terminal Emulator Android (Android x-86 Version 5.1)

Let me introduce myself, I am Deni Yulianti. Now, I have a problem to resolve DNS resolve. I already set static IP address.
actually, I already setup DNS server in /system/etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
then, I reboot but i still cannot access the internet.
Further, I add this command in /system/build.prop
net.rmnet0.dns1=8.8.8.8
net.rmnet0.dns2=8.8.4.4
net.dns1=8.8.8.8
net.dns2=8.8.4.4
After I reboot, there is no changing with my DNS server.
Could you please help me out of this problem. Your suggestion is appreciated. Thanks in advance.
Best Regards,
Deni Yulianti, MSc

Categories

Resources