Then watch the movie, and you'll see that Dobby is dead, killed by a witch .. I do not remember the name, but is pierced to save Harry and the other, the Witch was an ally of Voldemort, of course.
Dobby knows what happened The witch is Miss Bellatrix