National Park Service in Montana: pets

Pets on a leash of six feet or less at all times. None in public buildings or on designated swimming beaches.

All year1 placelaw.cornell.edu

Each rule, in the law's own words1 rule

Pets on a leash of six feet or less at all times. None in public buildings or on designated swimming beaches.

Source: Rules: 36 CFR §2.15, National Park Service (36 CFR §2.15 (Pets))

Places this rule covers

Open to dogs now first, then off-leash places and those with a photo.

Check posted signs. They are the rule on site. This guide restates published rules and OpenStreetMap data, which can be out of date or incomplete. It is not legal advice.