Re carpets (and beds, and any other fabric that your dog spends a lot of time lying on): There are insecticides which specifically interrupt the insect growth cycle, and are fairly harmless to mammals. I believe these are available as dusts and/or shampoos for treating carpets, and possibly as "bug-bombs". I'd suggest asking your vet for advice. The one time my cat and I were fighting a flea infestation, it took a few weeks of that, flea shampoo, and actively combing the fleas out of her fur before they were all gone... and I think I wound up throwing out the old bathrobe she was using as a daybed. As others have said, flea collars or the new back-of-the-neck drops are a good preventative to keep the fleas from taking up housekeeping in your pet's fur to begin with. So is keeping the pet indoors, but that's a lot easier with cats than with dogs.