We have three dogs who share the yard with our free range chickens. Its never been a problem because the dogs were trained in basic obedience before they were introduced to the birds. We started out with chicks in the brooder in the house, teaching the dogs to leave it, rubbing the chicks on the dogs' faces and heads. Sitting around the house with the dogs and chicks on our laps, etc. And so we had a lot of wonderful moments when the dogs got to be walking brooders, like this:

That''s Flash and he still grooms the chickens! Quite a sight when he grooms our gigantic Cochin rooster, lemme tell you.
Fwiw we have three dogs, all rescues - two basset hounds and a border collie. The bassets are excellent field dogs, we've used them to hunt down racoons and chase varmints off friends' properties. They do not chase our chickens. Or chicks. Or ducks. Or our rabbits. Or our cats. Friends not food.
The border collie is marvelous. She learned to herd with our ducks, now she herds the chickens. Its a bit bizarre but she's wonderful at it. When there's a problem, she lets us know ASAP. She's marvelous with the chicks, very protective especially of the broody mothers. We always know before the eggs hatch, be they under a hen or in the incubator, because Gracie KNOWS and lets us know. She's very bonded to her chickens, it begins early.

Three years and counting, the only bird we've lost was to a Bald Eagle!
That''s Flash and he still grooms the chickens! Quite a sight when he grooms our gigantic Cochin rooster, lemme tell you.
Fwiw we have three dogs, all rescues - two basset hounds and a border collie. The bassets are excellent field dogs, we've used them to hunt down racoons and chase varmints off friends' properties. They do not chase our chickens. Or chicks. Or ducks. Or our rabbits. Or our cats. Friends not food.

The border collie is marvelous. She learned to herd with our ducks, now she herds the chickens. Its a bit bizarre but she's wonderful at it. When there's a problem, she lets us know ASAP. She's marvelous with the chicks, very protective especially of the broody mothers. We always know before the eggs hatch, be they under a hen or in the incubator, because Gracie KNOWS and lets us know. She's very bonded to her chickens, it begins early.
Three years and counting, the only bird we've lost was to a Bald Eagle!