If your dog has gone more than 24 hours without food you should call the vet. Anything more than that (especially any lack of food over a 48 hour period) could be a sign of a serious illness or an emergency.