Poor Dex.
I hope it is just a little bug and that he feels better tomorrow. A couple years ago, my boys had a 24 hour bug that caused them to throw up. They still had strong appetites and wanted to play, but I withheld their food and then reintroduced a bland diet slowly the next day.
Just make sure Dex stays hydrated.