david_1234
Posts: 328
Joined: Mon Jan 01, 2018 2:14 pm

PI 3 eth0 IP setting problem - have ping but no DNS?

Thu Aug 30, 2018 1:22 pm

Hello ,
I'm trying to setup my PI to be 10.0.0.100/24
DG is 10.0.0.1/24
the DNS is also from 10.0.0.1

this is waht I did:

IPv4 Address 10.0.0.100/24
IPv6 Address _ Blanck
Router 10.0.0.1
DNS Server 10.0.0.1
DNS Search 10.0.0.1


this is what I get

Code: Select all

pi@raspberrypi:~ $ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.100  netmask 255.0.0.0  broadcast 10.255.255.255
        inet6 fe80::c858:1f11:2dda:584a  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:31:48:20  txqueuelen 1000  (Ethernet)
        RX packets 4082  bytes 339768 (331.8 KiB)
        RX errors 0  dropped 2  overruns 0  frame 0
        TX packets 4524  bytes 1501826 (1.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
I have ping to 8.8.8.8 but not to www.google.com

what did I do wrong?

* also what is the differnet between DNS Server and DNS search ?

Thanks ,

epoch1970
Posts: 5022
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: PI 3 eth0 IP setting problem - have ping but no DNS?

Thu Aug 30, 2018 1:45 pm

I don’t know where you did what you did (in the gateway I assume) but that did not convey the right network mask: your Pi has the right IP but thinks it is on network 10.x.x.x and not on 10.0.0.x.

“DNS search” is used to list one or many domains (e.g. “my.lan”) to search for a host if its domain name if not fully specified. For example “ping pi” would cause the system to look for the IP address of “pi.my.lan” before pinging.
"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

david_1234
Posts: 328
Joined: Mon Jan 01, 2018 2:14 pm

Re: PI 3 eth0 IP setting problem - have ping but no DNS?

Thu Aug 30, 2018 1:57 pm

the setting where madew in the eth0 interface GPIO (from the upper right corner)

I guess my problem was soemthing in the DNS of that router (10.0.0.1)
I have change it and - everything start to work.

Thanks ,

Return to “Beginners”