LookingA non-native English speaker, I often have to rely solely on the usage examples from original English language pieces of literary work and dictionaries; so looking for examples, I came across
The dog lifted its leg against the lamp postThe dog lifted its leg against the lamp..
At any rate, it is an example from a reliable source.
And here's the example of using the preposition on in the context of a male dog preparing to pee.
That said, I absolutely agree on using the preposition "on" and can't but agree on the preposition "at" suggested in the answer and approved of in the comment on it, both being provided by native English speakers. At the same time, the other suggestions are well worth being taken note of, as quite possible alternatives.
As a side note, "hind" seems to be redundant, logically, in such a situation (IMHO)