[Q] [ Reverse Tethering ] DNS is not working

Search This thread

thruthesky

New member
Jan 10, 2014
1
0
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