I'm having "fun" with a Pi 2 when it is using WiFi rather than Ethernet.
On Ethernet, it appears to boot up, and pick up the time server OK, but on WiFi, it doesn't. Doing some digging around on line, the suggestions seem to centre on making sure that the /etc/resolv.conf file has name servers in it.
I've edited the file to put in a number of entries (cut and paste from a Pi B+), and the Pi 2 picks up the time server, and away we go. As soon as I reboot, we are back to the same problem. It seems that either the shutdown or the boot operation empties the file and puts :
# Generated by resolvconf
in the file instead, which is starting to get annoying.
Strangely, the Pi 2 has a /etc/resolv.conf and a /etc/resolvconf.conf file, whereas the B+ only has the former. Should I get rid of the latter file ?
Both machines are running raspbian.