Pi3 Wifi DNS not working - Raspberry Pi Forums


hello pi community

i'm trying move pi3 on using wifi , have connected wifi network not able internet connection.
using jessie light , wifi on dhcp.

if try ping www.google.com ethernet connected works fine

code: select all

ping www.google.com (172.217.25.36) 56(84) bytes of data. 64 bytes syd15s02-in-f36.1e100.net (172.217.25.36): icmp_seq=1 ttl=55 time=58.5 ms 64 bytes syd15s02-in-f36.1e100.net (172.217.25.36): icmp_seq=2 ttl=55 time=57.8 ms

if reboot, disconnect ethernet cable, ssh in on wifi get

code: select all

ping: unknown host www.google.com


here result of sudo route -n

code: select all

kernel ip routing table destination     gateway         genmask         flags metric ref    use iface 0.0.0.0         192.168.1.1     0.0.0.0         ug    0      0        0 eth0 0.0.0.0         192.168.1.1     0.0.0.0         ug    303    0        0 wlan0 192.168.1.0     0.0.0.0         255.255.255.0   u     0      0        0 wlan0 192.168.1.0     0.0.0.0         255.255.255.0   u     303    0        0 wlan0 
here result of ifconfig[/b]

code: select all

eth0      link encap:ethernet  hwaddr b8:27:eb:a6:87:57           inet addr:192.168.1.235  bcast:192.168.1.255  mask:255.255.255.0           broadcast multicast  mtu:1500  metric:1           rx packets:309 errors:0 dropped:54 overruns:0 frame:0           tx packets:130 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           rx bytes:29655 (28.9 kib)  tx bytes:14681 (14.3 kib)  lo        link encap:local loopback           inet addr:127.0.0.1  mask:255.0.0.0           inet6 addr: ::1/128 scope:host           loopback running  mtu:65536  metric:1           rx packets:678 errors:0 dropped:0 overruns:0 frame:0           tx packets:678 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1           rx bytes:82526 (80.5 kib)  tx bytes:82526 (80.5 kib)  wlan0     link encap:ethernet  hwaddr b8:27:eb:f3:d2:02           inet addr:192.168.1.130  bcast:192.168.1.255  mask:255.255.255.0           inet6 addr: fe80::ba27:ebff:fef3:d202/64 scope:link           broadcast running multicast  mtu:1500  metric:1           rx packets:2162 errors:0 dropped:0 overruns:0 frame:0           tx packets:810 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000           rx bytes:254085 (248.1 kib)  tx bytes:163664 (159.8 kib) 
here /etc/network/interfaces

code: select all

 auto lo  iface lo inet loopback auto eth0 iface eth0 inet static         address 192.168.1.235         netmask 255.255.255.0         gateway 192.168.1.1         dns-nameservers 192.168.1.1  auto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf  iface default inet dhcp  
here resolve.conf

code: select all

# generated resolvconf #google dns nameserver 8.8.8.8  #opendns servers nameserver 208.67.222.222 nameserver 208.67.220.220 nameserver 192.168.1.1  

can point out whats wrong me?

you've got 2 gateway routes. linux pick eth0 (lower metric) it's faster.

take ip route command


raspberrypi



Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'