The first hot water of the season is not a fair sample.
Let it run
Open the hot tap and let it run three or four minutes. Water that clears was sitting; water that stays brown has a source.
Then check the cold tap. Clear cold water with brown hot narrows the problem to the tank or the hot run.
Three sources at a cabin
Stagnation. Months of water sitting in a tank and pipes. The most common finding, and the least serious.
A spent anode. The rod protects the steel until it is used up. After that the shell corrodes and the water carries the result.
Silt. A supply carrying solids drops them on the floor, and a change in demand lifts them again.
What helps
Drain and refill. Inspect the anode at drain-down. If the water is mineral or carries silt, test it and treat on the result rather than on the colour.
When the shell has gone
Rust at the base with a weep, or with the supply isolated and water still arriving. That is a replacement, and the permit and the road decide how.
The habit that prevents most of it
Drain at the close of the season. A tank left dry does not stagnate.
What to have ready
Cold result, persistence, closure length, age.