In cases like this it helps to break the problem down – which in turn means knowing something about the pieces that need to line up for a network connection to succeed. Much of this information isn't specific to the Pi or it's OS, but it will be helpful to know the tools and foibles of the particular hardware and OS that you are using.

This question and its answers may help: [How do I set up networking/WiFi/static IP address?][0].

Testing with other devices on the same network may also help pinpoint where the problem lies. Rebooting often works wonders.

In general you want to start close and expand as you test, so you might:

1. Ping a machine on your local net by IP address (```ping 10.0.0.42```).
1. Ping the internal interface of your router by IP address (```ping 10.0.0.1```).
1. Ping the external interface of your router by IP address (```ping 1.2.4.192```).
1. Ping your's router default route by IP address (```ping 1.2.4.8```).
1. Ping something far away by IP address (```ping 8.8.8.8```).

If those all work then you have a network connection that is working at the IP level. If any of them fail, then that is the spot to start investigating further.

Next test that DNS works. You could:

1. Use ```dig``` to check it DNS requests are getting resolved. Use a well known server by IP address (e.g., 8.8.8.8 or 1.1.1.1) – ```dig google.com @1.1.1.1```
1. Then try the same thing using the DNS server that you have configured.
1. Then try pinging a "new" host (one that you're confident isn't in your local resolver cache.

[0]: https://raspberrypi.stackexchange.com/questions/37920/how-do-i-set-up-networking-wifi-static-ip-address/37921#37921