If you are talking about the vertical style bread toaster, don't cook anything that isn't bread in those. If you are talking about a toaster oven, you can wrap it in foil and bake it.
A solid alternative, and what makes a hotdog's flavor really pop, is cutting it into 6-10 pieces and pan frying it.