There are two legal doctrines that seem to get cross threaded when it comes to chickens. One doctrine......the livestock version of the "castle doctrine" that says you get to shoot what comes on to your property to cause harm. The other is the doctrine of "attractive nuisance". That one is implied by me, but I do think it applies.
https://en.wikipedia.org/wiki/Attractive_nuisance_doctrine
Classic example is that of a backyard swimming pool and the risk of drowning that is imposed upon small children. So the solution is for the property owner to construct a fence to keep kids out and to post warning signs.
As far as dogs are concerned, chickens are an attractive nuisance. Dogs can't help it.....that predator drive is hard wired into their DNA. They don't know the laws, and they don't know where property lines begin and end. So to expect them to keep their distance and to respect your rights and those of your chickens is a bit much to ask. And neighbors are what they are.......and many can be jerks. Worse, many of them will see your birds as a threat to their dog's and their dogs enjoyment of running around. To them, the shoe is on the other foot. To them, your birds are the nuisance.
So I still maintain the best solution to protect your birds from dogs and just about every other beast that walks the planet is to create barriers of protection to keep the birds safe. A tight coop and/or run at ground zero is essential, but how to do that when the space opens up to include a yard? Hard fences are no barrier. I have a 4' high chain link fence out back that I have seen coons, possums, skunks and cats go through like it wasn't even there. They barely slow down. (they go under it). A fox or coyote can go over it. These animals encounter these fences daily and mostly ignore them.
What they don't understand and can't seem to grasp is the nature of an electric fence. As a physical barrier, it is nothing. As a psychological barrier, it is everything. All they know is when they approach or touch it, they get a painful shock (which then don't understand either.......although they do feel extreme pain), so to avoid that level of pain, the fence becomes a barrier they won't cross. It seems so simple.......it works so well........it baffles me why it isn't as common place as a coop and run.