In case someone else losses Dogmeat, or any companion for that matter, here is the console command to make him appear in front of you.
prid 0001d162 (this is dogmeat's ref id, if you lose someone else, you'll need their own ref id)
moveto player
That's it, hope it helps someone.
EDIT: Oops, saw Platypus already told this.
_________________
