Discoloured hot water is a locating problem before it is a repair problem.
Which tap, which time
Run the hot tap in a white cup at the kitchen. Then the bathroom. Then a laundry sink if there is one.
Colour at one fixture only points at that branch. Colour at every hot tap points at the tank or the main hot run. Colour that appears after the house has sat overnight is sediment being stirred, not necessarily corrosion.
Check the cold side
Clear cold water and tinted hot water removes the supply from the list. The water district's wells are not delivering iron at a level that would explain a brown glass in a house with copper pipe.
The plumbing clue
Homes built before 1970 here are the ones most likely to still have galvanised sections. Those pipes rust from the inside out, and the first evidence is often a metallic taste and a rust tint in the morning.
Census figures put about 37% of the local stock in that 1940 to 1969 window, so it is a real possibility, not a theory.
The tank clue
If the tint comes with a metallic taste, a rising frequency, and a tank older than its warranty, the shell is the suspect. A pitted head or a weeping seam settles it.
The anode clue
The sacrificial rod protects the lining. Once it is consumed, the lining starts to go, and water picks up the products of that corrosion long before the tank leaks.
What a flush will and will not do
A flush removes sediment that can tint water when it is disturbed. It does not repair a corroded shell, and it will not clean up galvanised pipe.
Sorting it out
Describe the pattern when you call: which taps, what time of day, and whether the cold side is clear. That shortens the diagnosis more than any single observation.