Question: if a dog has fleas what to do?
Answer: Wash all bedding in hot, soapy water.
Vacuum all carpets, hardwood floors, linoleum, and tiled floors, and throw away the vacuum bag.
Choose and apply an environmental flea control like methoprene, or call a local exterminator.