You need to go to the vet and buy the dewormer medicine it is not that expensive, it is rather cheap and give it to your dog. That is the only way and best way to get rid of worms. Also, try feeding your dog a better brand of dog food. You need to deworm your dog every few months especially if he/she lives outside. It is just a syringe of medicine it is sometimes flavored and you just squeeze it in the dogs mouth. That is what my vet gives my dog. And my dog takes it well.
There is not an at home remedy for intestinal parasites--mustard or rice will not work. Have your dog and a fecal sample examined by a veterinarian. They will run a fecal exam to determine what type of worms your dog has then prescribe appropriate treatment. There is not a universal dewormer that gets all types of worms.
If you are looking for a home rem here is one that is proven use about a 1/4 of a teaspoon of yellow mustard in its food it will work give it like once every two weeks