Best way to treat the yard is with
beneficial nematodes.
They live in the soil, consuming flea larva and other assorted grubs.
On the dog, we use this...
In the home, use a trap like this one...
Make Your Own Flea Trap
That flea trap works soooo great......I had an small infestation of fleas I never realized until my cat died and they came after me! I tried all kins of sprays etc and was close to calling an exterminator when I read about this.....I actually used a candle in the dish which they were attracted to and couldn't believe what was in there the next morning.
I also used Borax Powdered clothes detergent on rugs and furniture bedding etc. Left it on for a day then swept. What that does is dries their shell and it cracks and they die. Also worked great from any recurrence.