The reality imo is that while people want a dog, they don't want the commitment of owning a dog which includes planning your life that includes dealing with the animal that is now a part of your home.
If you are living in a rural area and have land and own a dog that is an outdoor dog that has a job herding livestock or guarding the property. You can arrange for a neighbor to check in on the animal once a day. Maybe even feed him, but you don't need to worry about much else.
However if your lifestyle is more the typical subdivision where you have a yard, your dog needs to be cared for when you leave town. This requires either you taking the dog with you (hey going camping and wanting to hike up a mountain side. Sure bring the dog as long as you follow the local leash laws. But still you have all the opportunity possible. Although you need to pay attention to the laws when in State and National Parks. Some areas don't allow dogs because of the impact on the local biosphere.
If you are visiting friends and family, you ask if it is okay to bring your animal and if it isn't than respect that and pay the price for care while you are away. If you bring your animal and it is clear that although you received a yes it really was a I wish you wouldn't but I don't want to offend you, than don't ever bring it up again and never bring your dog over again. Most of time you can easily discern between a charity yes and an earnest desire not to have your dog in their home.
Pay for a Pet/House sitter. Do background checks and have them over to meet with your animal(s). Be prepared to pay top dollar for this service. You wanted the dog, so act like it vs cheaping out and pushing your poor decision on others especially family. I love dogs and for me it would not be a poor decision because I would pay to have my animals cared for while I was on the road. It would be part of the cost