Get Diatomaceous Earth from the pet store and rub it into the dogs coat. Will not hurt animals as it is used to get rid of worms in animals. Sprinkle where he lays and sleeps and wherever you find they are biting your ankles. Takes about a week to 10 days to kill them and their eggs.