Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,802,856 Members 38,681 Now Online
XDA Developers Android and Mobile Development Forum

[Q] [ Reverse Tethering ] DNS is not working

Tip us?
 
thruthesky
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 1
Join Date: Jan 2014
Talking [Q] [ Reverse Tethering ] DNS is not working

When I did same thing on Galaxy S3, it's working fine.

But When it did it on Galaxy Note2, it some times works. once out of 10 times works.

If you look below, ping is working. but it's not working with the domain name.

I did nslookup and it's working.

I browsed to a website throught IP and it's working. but it's not working with domain.

I tried to adjust DNS info in ADB shell but still not working.

it's working some times. but most out of times it's not working.

Please some body gives me any hint.

thank you.


--------------------------------------------------------------
C:\Users\JaeHo>ipconfig
Ethernet adapter Local Area Connection 9:

Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::99d3:e644:18aa:c0fe%49
IPv4 Address. . . . . . . . . . . : 192.168.137.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
---------------------------------------------------------------
C:\Users\JaeHo>adb shell
shell@t03g:/ $ su
su
root@t03g:/ # netcfg rndis0 dhcp
netcfg rndis0 dhcp
root@t03g:/ # route add default gw 192.168.137.1 dev rndis0
route add default gw 192.168.137.1 dev rndis0
root@t03g:/ # ping -c5 philgo.com
ping -c5 philgo.com
ping: unknown host philgo.com
2|root@t03g:/ # ping -c5 168.126.63.1
ping -c5 168.126.63.1
PING 168.126.63.1 (168.126.63.1) 56(84) bytes of data.
64 bytes from 168.126.63.1: icmp_seq=1 ttl=52 time=105 ms
64 bytes from 168.126.63.1: icmp_seq=2 ttl=52 time=100 ms
64 bytes from 168.126.63.1: icmp_seq=3 ttl=52 time=100 ms
64 bytes from 168.126.63.1: icmp_seq=4 ttl=52 time=132 ms
64 bytes from 168.126.63.1: icmp_seq=5 ttl=52 time=100 ms

--- 168.126.63.1 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 100.747/108.058/132.237/12.238 ms
root@t03g:/ # getprop net.dns1
getprop net.dns1

root@t03g:/ # nslookup philgo.com
nslookup philgo.com
nslookup: can't resolve '(null)': Name or service not known

Name: philgo.com
Address 1: 116.122.36.242
root@t03g:/ # ip route show
ip route show
default via 192.168.137.1 dev rndis0
192.168.137.0/24 dev rndis0 proto kernel scope link src 192.168.137.131
 
IlDebbio
Old
#2  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: May 2014
When setprop does not set the prop... :

Code:
iptables -t nat -A OUTPUT -p udp --dport 53 -j DNAT --to-destination 8.8.8.8:53
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes